473,805 Members | 1,981 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with webRequest.meth od = post

------------------------------------------------------------------
<input type="hidden" name="__VIEWSTA TE"
value="dDwtMTUz MzQ4ODY4ODs7Ple b3NLElxrFpPbkFW oEst9bdqIM" />

<span id="Label1" style="height:2 7px;width:764px ;Z-INDEX: 101;
LEFT: 27px; POSITION: absolute; TOP: 110px">Label</span>
<input name="url" type="text" id="url"
style="height:2 5px;width:276px ;Z-INDEX: 102; LEFT: 20px; POSITION:
absolute; TOP: 18px" />
<input type="submit" name="Button1" value="Button" id="Button1"
style="height:2 4px;width:121px ;Z-INDEX: 103; LEFT: 302px; POSITION:
absolute; TOP: 19px" />
<input type="submit" name="Button2" value="Button" id="Button2"
style="height:2 5px;width:114px ;Z-INDEX: 104; LEFT: 423px; POSITION:
absolute; TOP: 18px" />
<input type="submit" name="Button3" value="direct" id="Button3"
style="width:10 8px;Z-INDEX: 105; LEFT: 536px; POSITION: absolute; TOP:
19px" />
<input type="submit" name="Button4" value="aspAlli" id="Button4"
style="width:87 px;Z-INDEX: 106; LEFT: 644px; POSITION: absolute; TOP:
19px" />
<input type="submit" name="Button5" value="Button" id="Button5"
style="height:2 5px;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
Nov 17 '05 #1
1 1955
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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3279
by: Keith Selbee | last post by:
I am trying to submit data to a webpage in the form of a post and my code is below. It is a function that takes a url and the post content as strings and then performs the post. But as soon as I add the post data to the headers I get an exception that just says "headers". Can anyone please help me here? Thanks.... public string Get(string u, string c) { WebRequest wr = WebRequest.Create(u); wr.Headers.Add(c);
5
17578
by: Tony | last post by:
Please help, I've scoured the web but cannot find an answer to this! I want to use WebRequest to get the contents of a web page. The trouble is, the page require you to go to a login page (using ASP - not ASP.NET), and enter a username and password to get in. How do I use WebRequest in this situation? I cannot find any way of supplying the username and password. The '.Credentials' does not work because that is only for Windows...
4
4325
by: Paul | last post by:
Hello, I tried to execute a button on an aspx webpage using WebRequest, but it failed. When posting data as if I did a login (see code), I just receive the login page, instead of the page I should get after login. The button I tried to 'push' (by adding &login=Login in de posted data, where login is the name of the login button - I verified this data by capturing the data of a request using a webbrowser) has not executed.
3
2811
by: Stephane | last post by:
Hi, I'm trying to use PayPal and its Instant Payment Notification. In short, when a payment is made, PayPal send a post to my server and I post it back to PayPal. I'm using WebRequest to do this. I receive the PayPal post, but I can't post it back. It's always giving me a Time out. Here's my code:
6
12487
by: Jensen Bredhal | last post by:
Hello, I need to send command to a web server from a method. I understand this should be possible using the WebClient or WebRequest class. how can this be done? below an example of my HTTP based command to the server:
10
2686
by: Danny | last post by:
I am working on a project where I will receive xml documents from clients machines as a byte array. They will use the web browser navigate method to post the data to my ASP.NET page. I then pick up the byte array using the request object (XMLData=bytearray..). Can someone point me to an article that shows me how I can do this in ASP.NET, C#? Thanks Danny
4
1910
by: Savas Ates | last post by:
I have a vb.net web application. I want to post some variables to another web page and take some values back and process them. This is codes in my target url. I should post "langpair" cariable to my target url and it will respond with a value depend on a value which i send. <SELECT name=langpair><OPTION value=en|de>English to German</OPTION><OPTION value=en|es>English to Spanish</OPTION> </select>
6
2475
by: Bob | last post by:
Hi, I am new to using a web resource which is not a webservice and I am spinning my wheels with the webrequest class. I am trying to interact with a URI that has been given to me. It is say www.bloggs.com/cgi-bin/thin-client" My app gathers data and is supposed to pass this data to the URI which will then respond with a result. So some real basic questions. 1)They have given me a user name and password to use.
0
1196
by: Alok yadav | last post by:
i am using the link of metacharge.com for payment gateway, when i post data throung IE it give the correct response, but when i use the .net code to post data the response is not correct.message is some data is missing. i use the following code: public class httpClass { private string UserName; private string UserPwd;
2
1127
by: davidson1 | last post by:
Hai friends....the below code is working well for sending sms from VS2008 C# windows Application...........but i want the same to work in ASP.NET(vb)............can anyone help me....I converted the code and tried but it didnt work.............................................. In the String uri....under send_to put ur mobile Number............... CODING:-(c# windows Application) using System; using System.Collections.Generic; using...
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10366
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10105
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9185
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5542
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3845
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.