Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
727 Points
155 Posts
May 17, 2012 11:08 AM|LINK
Firstly uncomment the line
GridView1.DataBind(); //the databind() method is required
and change the query to
SqlDataAdapter adp = new SqlDataAdapter("select * from Unit_Detail where UnitCustomerID_i = '" + i.ToString() + "'", con);
If it still does not work,change
int i=Convert.ToInt32(DropDownList1.SelectedItem.Value);
Ravi Kumar K...
Member
727 Points
155 Posts
Re: Conversion Error...why?
May 17, 2012 11:08 AM|LINK
Firstly uncomment the line
GridView1.DataBind(); //the databind() method is required
and change the query to
SqlDataAdapter adp = new SqlDataAdapter("select * from Unit_Detail where UnitCustomerID_i = '" + i.ToString() + "'", con);
If it still does not work,change
int i=Convert.ToInt32(DropDownList1.SelectedItem.Value);