Can you populate a pre-populated drop down list in asp C#?
<p>As of right now, I have a ddl that I already have populated with the information from a table. It is a list of customers that is set to auto-postback. The problem I am running into, is the fact the default selection is always the first customer on the list and when you click on one customer in does the post back and gets all the information needed and also sets the selection to the first customer and does not do the post back. </p>

<p>So a fix that I have thought of and have been trying to achieve is putting a null value in the ddl that is something like "Please Select Customer".. 
I have gone into the DDLs edit items and added this, but the call to the table that it does not include it. Is there a way for it to be included.</p>

<p>With Mozilla Firefox, I do not run into this problem, because after the postback it stays on the same customer. If I can clear anything up, I will do my best, if there is any piece of code that could be useful, I can provide it</p>

<pre><code>//save the value of the current selection to reselect later if still exists
string origSelectedItem = ddlSelectedCustomer.SelectedValue;

//clear and refill the list
ddlSelectedCustomer.Items.Clear();

//check what role the user is in
string usersRole = Roles.GetRolesForUser(Membership.GetUser().UserName)[0];

MembershipUser user = Membership.GetUser();

switch (usersRole)
{
    case "SalesRep":
         ddlSelectedCustomer.DataSource = 
         DAL.Util.getSalesRepCustomers((Guid)user.ProviderUserKey);
         ddlSelectedCustomer.DataBind();
         break;

    case "BasicUser":
    case "Customer":
         ddlSelectedCustomer.DataSource = 
         DAL.Util.getCustomersListForUser((Guid)user.ProviderUserKey);
         ddlSelectedCustomer.DataBind();
         break;

    case "Admin":
    case "SuperAdmin":
         ddlSelectedCustomer.DataSource = DAL.Util.getAllCustomersList(); 
         ddlSelectedCustomer.DataBind();
         break;
    default:
         break;
}

//if user had a company selected, reselect it if it exists
if (origSelectedItem != string.Empty)
    ddlSelectedCustomer.SelectedValue = origSelectedItem;
else if (ddlSelectedCustomer.Items.Count == 1)    
    //if only one item in the list, select it
    ddlSelectedCustomer.Items[0].Selected = true;
</code></pre>

<p>Also this is in the code-behind on the master page of the site.</p>

<p>Thank you</p>
