Tutorial House
  • Home
  • .Net
    • Asp.Net Questions
    • C#.Net
    • Vb.Net
    • Reporting
    • Sample Applications
  • SQL
    • Sql Questions
  • HTML
  • Scripts
  • Others
    • Links
    • Errors
    • Tips
    • EBooks
  • Jquery

How to set the value of dropdownlist at runtime in c#.

5/28/2013

0 Comments

 
Following is the code to set the value of dropdownlist at runtime in c#.


ddlCountry.SelectedIndex = ddlCountry.Items.IndexOf(ddlCountry.Items.FindByValue(countryname));

0 Comments



Leave a Reply.

    Archives

    November 2015
    June 2013
    May 2013
    March 2013
    February 2013
    January 2013
    November 2012
    September 2012
    July 2012
    June 2012

    Categories

    All
    Asp.Net
    C#
    Datagridview
    Dropdownlist
    Globalization
    Gridview
    Javascript
    VB.Net
    Window Form

    RSS Feed


    more Quotes

Powered by Create your own unique website with customizable templates.