hi guys,
<body>
<form id="form1" runat="server">
<div>
<asp:DropDownList ID="DropDownList2" runat="server" Width="165px">
<asp:ListItem>[Select Group]</asp:ListItem>
<asp:ListItem>A+ </asp:ListItem>
<asp:ListItem>B+ </asp:ListItem>
<asp:ListItem>AB+ </asp:ListItem>
<asp:ListItem>O+ </asp:ListItem>
<asp:ListItem>A-</asp:ListItem>
<asp:ListItem>B-</asp:ListItem>
<asp:ListItem>AB-</asp:ListItem>
<asp:ListItem>O-</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="DropDownList3" runat="server" Width="167px">
<asp:ListItem>Jammu Kashmir</asp:ListItem>
</asp:DropDownList>
<asp:DropDownList ID="DropDownList1" runat="server" Width="167px">
<asp:ListItem>Jammu</asp:ListItem>
<asp:ListItem>Srinagar</asp:ListItem>
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Search" Width="88px" /><br />
<br />
</div>
</form>
</body>
code behind is like this
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class search : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect ("search_donor.aspx?bg=" + DropDownList2.SelectedItem.Text + "&st=" + DropDownList3.SelectedItem.Text + "&city=" + DropDownList1.SelectedItem.Text);
}
}
but i m not getting the results in the grid view where i pass these querystrings
i think this is because of A+,A-,AB+ when we pass it in querystring it creates a problem
plz tell me way out,,,,