Skip to main content

Posts

Showing posts with the label DropDownList in ASP.NET using C#

DropDownList in ASP.NET using C#

Hello everyone, In this post, i'm going to share to code-sample for bind country list in dropdownlist in asp.net using C#.   This example is simple and easily understandable  DropDownList code-sample using asp.net with c#   Table of Contents 1. In the 1st steps, code-sample for aspx page 2. In the 2nd steps, code-sample for C# (.cs page) In the 1st step , we write the code for view in asp.net page i.e. .aspx < asp : DropDownList ID ="DDLLocation" runat ="server" OnSelectedIndexChanged ="DDLLocation_SelectedIndexChanged"     AutoPostBack ="true">     < asp : ListItem Text ="Select Location" Selected ="true"></ asp : ListItem >     < asp : ListItem Value ="Nda"> Utter Pradesh </ asp : ListItem >     < asp : ListItem Value ="chi"> Delhi </ asp : ListItem >     < asp : ListItem Value ="Ambd"> Ranchi </ asp : ...