Drop Down List Box

B

Bill Hand

How do you get the selected item using c#? I am trying to assign the selected value to a variable.

I was trying to use something like this:

string strFullName = DOM.SelectSingleNode("/my:myFields/my:field39", NamespaceManager).Value ;

but it doesn't set the value.

Thanks.

Bill
 
A

Anuma(GGK Tech)

Hi,

If you are using ip2007, try like thsi:

XPathNavigator xn = this.MainDataSource.CreateNavigator();
XPathNavigator xnUserName =
xn.SelectSingleNode("/dfs:myFields/dfs:dataFields/d:Buyers/d:WorkOrders/@ALCOUN", this.NamespaceManager);

string currentname = "Testname";
xnUserName.SetValue(currentnamer );
 

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