I have a dropdownlist that have All, Dog, Cat
and a GridView
want the dropdownlist show All
I will show all the item from the database but
want is show cat in the dropdownlist
It only show all the item that are cat only and not show all
can I have a simple of this
Loading
Sanjeeb LenkaPosted Jul 19, 2013, 4:51 AM
http://aspsnippets.com/Articles/Simple-Insert-Select-Edit-Update-and-Delete-in-ASPNet-GridView-control.aspx
http://www.aspdotnet-suresh.com/2011/02/how-to-inserteditupdate-and-delete-data.html
Tan Kai KaiPosted Jul 19, 2013, 4:18 AM
Sanjeeb LenkaPosted Jul 18, 2013, 11:16 AM
I attached a sample code for gridview just check that. if any problem reply.
Anurag SarkarPosted Jul 18, 2013, 10:22 AM
Tan Kai KaiPosted Jul 18, 2013, 9:41 AM
Anurag SarkarPosted Jul 17, 2013, 3:06 PM
{
SqlDataAdapter da = new SqlDataAdapter("select * from Category", con);
DataTable dt=new DataTable();
da.Fill(dt);
DataList1.DataSource=dt;//Here DataList1 is the name of the Drop Down Box.
DataLIst.DataBind();
}
Thanx please change the code.
Sanjeeb LenkaPosted Jul 17, 2013, 2:57 PM
I attached a sample code just check that. if any problem reply.
Anurag SarkarPosted Jul 17, 2013, 2:31 PM