Click here to Skip to main content
15,898,222 members

Comments by ekanshsaxena (Top 2 by date)

ekanshsaxena 23-Jan-15 5:01am View    
if you can be use query string than Division should be pass in this code must

Response.Redirect("FormAddition.aspx?id="Division);

if you do not pass division value than system give error of null exception.

otherwise you can be use Session["value"]=Division;

And Other Page string value=Session["value"].tostring();
ekanshsaxena 23-Jan-15 4:56am View    
protected void Page_Load(object sender, EventArgs e)
{
DataTable CityMembersTable = GetCity();
ddlCity.DataSource = CityMembersTable;
ddlCity.DataTextField = "CityName";
ddlCity.DataValueField = "CityID";
ddlCity.DataBind();

ddlCity.Items.Insert(0, new ListItem("<--Choose City-->", ""));
}