How to set the value of a text box

P

Paul B

Hi

I am having a real problem setting the value of a text box that has been set
to only accept integers.

How do i do this. I have tried
XDocument.DOM.selectSingleNode("/my:myFields/my:flag").nodeValue = 1;
and
XDocument.DOM.selectSingleNode("/my:myFields/my:flag").text = "1";

None work and i am running out of ideas.

please help
 
P

Paul B

I have found the answer
XDocument.DOM.selectSingleNode("/my:myFields/my:flag").text = 1;
 

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