Write an Article Write a Tutorial Add a Fast Code* *Fast Code might be any helpful code with brief comment
Stem Cells Blood Banks Insurances .Net Hosting Credit Cards PC Rental Business
Tutorials: ASP .NET C# .NET VB .NET Articles: ASP .NET C# .NET VB .NET Fast Code: ASP .NET C# .NET VB .NET
Male Female Prefer not to declare
ListItem item1=new ListItem("ItemText1","ItemVal1"); ListItem item2 = new ListItem("ItemText2", "ItemVal2"); item1.Selected = true; DropDownList1.Items.Add(item1); DropDownList1.Items.Add(item2);
ListItem item1=new ListItem("ItemText1","ItemVal1"); ListItem item2 = new ListItem("ItemText2", "ItemVal2"); DropDownList1.Items.Insert(0, item1); DropDownList1.Items.Insert(1, item2);
14/06/2007 00:06:23 UTC
Do you mean about showing alot of data inside the Dropdown? like you have to show more then 1000 values inside the list.
If this is the case then one solution would be to make it auto-complete dropdownlistbox. when some one start typing in the box it will only show the values starts from enterd piece of alphabits. You can use Ajax control Auto-Complete for that.
see the sample here:
http://ajax.asp.net/ajaxtoolkit/AutoComplete/AutoComplete.aspx
14/06/2007 04:02:01 UTC
30/10/2007 13:49:48 UTC
25/09/2008 02:39:37 UTC
13/10/2008 05:01:03 UTC