how to display a string on website through windows form
-
I am using C#.net to display the website (Example: "www.yahoo.com/login") in the form (using axWebBrowser). When I enter a string in a text box and click a button, I am trying to display the string in the "Yahoo ID" field on the website displayed on the form. Is it possible? If so, how can this be done? I am new to C#.net and will appreciate any of your help. Thank you.
-
I am using C#.net to display the website (Example: "www.yahoo.com/login") in the form (using axWebBrowser). When I enter a string in a text box and click a button, I am trying to display the string in the "Yahoo ID" field on the website displayed on the form. Is it possible? If so, how can this be done? I am new to C#.net and will appreciate any of your help. Thank you.
Parse the Document Html to get the Id. simple. :)
Abhishek Sur
My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB
**Don't forget to click "Good Answer" if you like to.
-
I am using C#.net to display the website (Example: "www.yahoo.com/login") in the form (using axWebBrowser). When I enter a string in a text box and click a button, I am trying to display the string in the "Yahoo ID" field on the website displayed on the form. Is it possible? If so, how can this be done? I am new to C#.net and will appreciate any of your help. Thank you.
-
Use the web browser control comes with .net. Here is a sample code to give you some idea. webBrowser1.Document.GetElementById("fieldname").SetAttribute("value", "foo"); webBrowser1.Document.GetElementById("button").InvokeMember("click");
Thank you for your replies. I will try that and update. I appreciate your time.
-
Thank you for your replies. I will try that and update. I appreciate your time.
Thank you Abhisekh and Tamer. Tamer, your solution worked like magic. :)