How to Add Item in ListBox control in asp.net

1.File-> New-> Website->  ASP.NET Web Site(Visual C#) -> Ok

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


2.ToolBox-> Double Click on ListBox(or drag and drop ListBox on Design view)-> click arrow sign(Vertical arrow on image) -> click Edit Items->you will promt a popup window
ListBox Control in asp.net3.Click Add to add new Item to your ListBox-> Change the Text to your desired item name->Ok

ListBox Control in asp.net

































 4.Click F5 to run your project->Ok
ListBox Control in asp.net output




No comments:

Post a Comment