problem with webRequest.method = post

S

Sujith Jagini

------------------------------------------------------------------
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTUzMzQ4ODY4ODs7Pleb3NLElxrFpPbkFWoEst9bdqIM" />

<span id="Label1" style="height:27px;width:764px;Z-INDEX: 101;
LEFT: 27px; POSITION: absolute; TOP: 110px">Label</span>
<input name="url" type="text" id="url"
style="height:25px;width:276px;Z-INDEX: 102; LEFT: 20px; POSITION:
absolute; TOP: 18px" />
<input type="submit" name="Button1" value="Button" id="Button1"
style="height:24px;width:121px;Z-INDEX: 103; LEFT: 302px; POSITION:
absolute; TOP: 19px" />
<input type="submit" name="Button2" value="Button" id="Button2"
style="height:25px;width:114px;Z-INDEX: 104; LEFT: 423px; POSITION:
absolute; TOP: 18px" />
<input type="submit" name="Button3" value="direct" id="Button3"
style="width:108px;Z-INDEX: 105; LEFT: 536px; POSITION: absolute; TOP:
19px" />
<input type="submit" name="Button4" value="aspAlli" id="Button4"
style="width:87px;Z-INDEX: 106; LEFT: 644px; POSITION: absolute; TOP:
19px" />
<input type="submit" name="Button5" value="Button" id="Button5"
style="height:25px;width:91px;Z-INDEX: 108; LEFT: 731px; POSITION:
absolute; TOP: 19px" />
</form>
</body>
</HTML>
-----------------------------------------------------------------
Hi, above I have pasted the source code of one of my aspx page . I
have a text box and 5 buttons. I insert text into the textbox and
click one of the five buttons. Based on the button pressed I get
different results. And my problem is, I want to automate this with
webRequest. I want to write a program that puts some text into textbox
and clicks the button specified in the program.
Help will be greatly appreciated.

Thank You
Sujith Jagini
 
N

Natty Gur

Sujith Hi,

what excecty you mean for program that automate this ? do you want to
create windows application that will do it or do you want to create
JavaScript that will insert data and simulate the clicks?

did you consider converting this to webservice ?


Natty Gur, CTO
Dao2Com Ltd.
34th Elkalay st. Raanana
Israel , 43000
Phone Numbers:
Office: +972-(0)9-7740261
Fax: +972-(0)9-7740261
Mobile: +972-(0)58-888377
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top