dropdownlist

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?
 
W

William Gower

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?
 
A

Alvin Bruney [MVP]

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top