How to send text value from c# textbox to the webpage?
I have implemented the connection code:
WebClient client = new WebClient();
String url="the url of the webpage"
Stream data = client.OpenRead(url);
The webpage contains a textbox and button….now i want to invoke both(textbox and button) from c# client application…how to implement that?
now i got the following error:
The remote server returned an error: (405) Method Not Allowed.
Here is what you can do:
1- Create a web page like http://www.test.com/default.aspx
2- Pass a querystring parameter like http://www.test.com/default.aspx?textboxvalue=123
3- In the Page_load of the default.aspx assign the query string value to the webpage textbox
4- Call the webpage from the your application like
EDIT:
If you donot have the access to the code then you are probably looking to automate the webpage. To automate you can use the http://watin.org/.
Here is the sample code