How to Add Items in DropDownLoad List in ASP.NET

I believe that one image solves a lot of question.so i am trying to use more image so Beginners can understand my article easily.

1.File->New->Click Website
 

































































































































Creating a website



2.(left side select visual c#) ASP.NET Web Site->ok

3.Now You will see a Default.aspx page. To create your own page->click on dropdown list below Edit->click Add new item->

4.Select Web Form(you change your page name)->click Add
5.Click Design->From ToolBox Drag and Drop a Label to Design window->Right click on  label->select properties->(look for text property) change text property from label to "Select University".

6. Toolbox->Drag and drop a DropDownList to Design window(or Double click on DropDownList) Beside label1.
Your window Should look similar to this
 7.Click on the arrow(beside DropDownList)->Click Edit Items->


8.(you will promt a window like this) Click Add(to add Item and Remove to Remove Item)->Change the Text(Here i Write Cambridge University)->(If you Change Selected Value to True Then it will show all the time in the DropDownList)


9.Click F5->Ok

Our DropDowwnList


No comments:

Post a Comment