Dear All,
am working on asp.net c#,
Iam reading Xml file using url,, its working fine.
I have two buttons on my page as ON and OFF.
When i click on ON button, the status of the xml file relay states will be 1
as....
<inputstates>000000000000000000</inputstates>
<relaystates>0000000000000001</relaystates>
and when i click OFF the status of the XML file relay states will be 0
<inputstates>000000000000000000</inputstates>
<relaystates>0000000000000000</relaystates>
Now, i want to put 10 seconds timer between these 0 and 1
When i click ON button it should be 1 and after 10 seconds it should be 0, same thing must be continued.
Please help.
This is my code for 10 seconds
string url = "http://10.10.14.44/state.xml?relay1state=2&pulsetTime1=10";
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(url);
thanks.