dropdownlist

  • Thread starter Thread starter William Gower
  • Start date Start date
W

William Gower

I have a dropdownlist called "ddlCustomers", the DataValueField is
"CustomerID, the DataTextField is "CustomerName".

In my Page_Load I call

DDLCustomers.DataSource = objDR
DDLCustomers.DataBind()

Now when I load in a User, I want to set the User's company to the proper
one in his record. How do I tell it to set the ddl to the user's customer
name?
 
that is not right. I tried that.

Alvin Bruney said:
ddl.items.selectedvalue = "customer to be shown"

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
William Gower said:
I have a dropdownlist called "ddlCustomers", the DataValueField is
"CustomerID, the DataTextField is "CustomerName".

In my Page_Load I call

DDLCustomers.DataSource = objDR
DDLCustomers.DataBind()

Now when I load in a User, I want to set the User's company to the proper
one in his record. How do I tell it to set the ddl to the user's customer
name?
 
what exactly is not right about it? would you mind showing me what *you
tried that seemed not to work?

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
William Gower said:
that is not right. I tried that.

Alvin Bruney said:
ddl.items.selectedvalue = "customer to be shown"

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
William Gower said:
I have a dropdownlist called "ddlCustomers", the DataValueField is
"CustomerID, the DataTextField is "CustomerName".

In my Page_Load I call

DDLCustomers.DataSource = objDR
DDLCustomers.DataBind()

Now when I load in a User, I want to set the User's company to the proper
one in his record. How do I tell it to set the ddl to the user's customer
name?
 
Back
Top