Link to home
Start Free TrialLog in
Avatar of tcmmaxt
tcmmaxtFlag for United States of America

asked on

How do you set dropdown list item text in pageload using .NET C#

I need to be able to set (default option) in my dropdown list  text to read "make a selection" (no value) only when the page first appears!  After a selection is made the drop down list items and values will then be dynamically loaded via a database, C# program etc


protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.Page.IsPostBack)
        {
           what shoulds i put here?
        }
    }

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Rhino1272
Rhino1272
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial