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;
 
Top