Display value vs real Value in a drop down

S

Stanley

Hi,

I have a drop down list box. In the display value field i have set it to
show the name of the item. In the value field i have set it to use the id, so
on the form i will see "Europe" while "on the background" i am using the ID
for this value which is for exmaple "1". When i access this field value in
code i get to see this id, but i want to have the name. How can achieve this?
I have tried:

XDocument.DOM.selectSingleNode("//my:txtName").text

But this gives me the ID. I cannot find any property whixh gives me the name
and not the ID.

Thnx,

Stanley
 

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

Top