problem with webRequest.method = post

  • Thread starter Thread starter Sujith Jagini
  • Start date Start date
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
 
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
 
Back
Top