Posted by : Sudhir Chekuri Monday, 21 July 2014



ASP.NET Code
  <asp:DropDownList ID="DDLCity" runat="server" >
                                    </asp:DropDownList>

                                 
C# Code


        DDLCity.DataSource = d;
        DDLCity.DataTextField = "City";
        DDLCity.DataValueField = "Cid";
        DDLCity.DataBind();
        DDLCity.Items.Insert(0, new ListItem("Select City", "0"));


Leave a Reply

Subscribe to Posts | Subscribe to Comments

Followers

Total Pageviews

Powered by Blogger.

- Copyright © 2013 DevStudent - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -