Click here to Skip to main content
15,895,836 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: grouping rows in gridview... Pin
Avinash_Mane22-Apr-10 4:20
Avinash_Mane22-Apr-10 4:20 
AnswerRe: grouping rows in gridview... Pin
Brij22-Apr-10 4:27
mentorBrij22-Apr-10 4:27 
Questiondropdownlist Pin
tek 200922-Apr-10 2:44
tek 200922-Apr-10 2:44 
AnswerRe: dropdownlist Pin
Sandesh M Patil22-Apr-10 3:10
Sandesh M Patil22-Apr-10 3:10 
QuestionRe: dropdownlist Pin
tek 200922-Apr-10 4:36
tek 200922-Apr-10 4:36 
AnswerRe: dropdownlist Pin
Swiftain22-Apr-10 5:08
Swiftain22-Apr-10 5:08 
AnswerRe: dropdownlist Pin
Sandeep Mewara22-Apr-10 5:10
mveSandeep Mewara22-Apr-10 5:10 
AnswerRe: dropdownlist Pin
Morgs Morgan22-Apr-10 22:16
Morgs Morgan22-Apr-10 22:16 
What matters the most when binding data to a control(dropdown in this case) is your datasource,
this will determin how you retrieve data from your datasource to your control, can be a List<>, database, collection.
For instance, i will bind simple data to my dropdown from a ArrayList.
public void FillCustomerNames()
{
   //please don't forget: using System.Collections;
   ArrayList customerNames = new ArrayList();//decalre new arraylist
   customerName.Add("Member123");//add your items
   customerName.Add("Member1234");
   customerName.Add("Member12345");//and so on...

   dropdownlist.DataSource = customerName;
   dropdownlist.DataBind();
}

That's it, whenever you call this method from anywhere it will fill your dropdownlist with those values(items)
GeneralRe: dropdownlist Pin
tek 200923-Apr-10 0:42
tek 200923-Apr-10 0:42 
QuestionText Box Event OnTextChange Pin
gautamamit822-Apr-10 2:35
gautamamit822-Apr-10 2:35 
AnswerRe: Text Box Event OnTextChange Pin
Morgs Morgan22-Apr-10 2:50
Morgs Morgan22-Apr-10 2:50 
GeneralRe: Text Box Event OnTextChange Pin
gautamamit822-Apr-10 3:36
gautamamit822-Apr-10 3:36 
GeneralRe: Text Box Event OnTextChange Pin
Brij22-Apr-10 4:04
mentorBrij22-Apr-10 4:04 
AnswerRe: Text Box Event OnTextChange Pin
Sandesh M Patil22-Apr-10 3:07
Sandesh M Patil22-Apr-10 3:07 
GeneralRe: Text Box Event OnTextChange Pin
gautamamit822-Apr-10 3:32
gautamamit822-Apr-10 3:32 
GeneralRe: Text Box Event OnTextChange Pin
Sandeep Mewara22-Apr-10 5:13
mveSandeep Mewara22-Apr-10 5:13 
AnswerRe: Text Box Event OnTextChange Pin
Swiftain22-Apr-10 5:23
Swiftain22-Apr-10 5:23 
QuestionExternal css (Firefox vs IE) Pin
Morgs Morgan22-Apr-10 2:04
Morgs Morgan22-Apr-10 2:04 
AnswerRe: External css (Firefox vs IE) Pin
WoutL22-Apr-10 2:21
WoutL22-Apr-10 2:21 
GeneralRe: External css (Firefox vs IE) Pin
Morgs Morgan22-Apr-10 2:43
Morgs Morgan22-Apr-10 2:43 
GeneralRe: External css (Firefox vs IE) Pin
WoutL22-Apr-10 2:50
WoutL22-Apr-10 2:50 
GeneralRe: External css (Firefox vs IE) Pin
Morgs Morgan22-Apr-10 2:59
Morgs Morgan22-Apr-10 2:59 
GeneralRe: External css (Firefox vs IE) Pin
Gregory Gadow22-Apr-10 3:29
Gregory Gadow22-Apr-10 3:29 
Questionget a value from Datalist and bring it on popupcontrol Panel Pin
gautamamit821-Apr-10 23:50
gautamamit821-Apr-10 23:50 
AnswerRe: get a value from Datalist and bring it on popupcontrol Panel Pin
Arindam Tewary22-Apr-10 1:58
professionalArindam Tewary22-Apr-10 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.