Pass Info from Desktop App to Webpage
-
Good Morning, I have a C# desktop application in VS10. I want to able to use an online search engine to retrieve information. I use the following code to call a webpage from the desktop:
string getPage = "http://www.theWebpage.com/";
System.Diagnostics.Process.Start(getPage);Once I am on that page, I want to pass the information from a textbox on my application directly to a search box on the webpage. Now, I can obviously do this by cutting and pasting the info into the webpage, but what I was wondering if I can have it load the info into the search box automatically when the page loads. The closest I can come now is to automatically copy the info from the textbox using the copy function, but that still requires to user to click and paste. I know how to do this from webpage to webpage but I have never done it from a desk application before. Can it be done? Thank You...Pat
-
Good Morning, I have a C# desktop application in VS10. I want to able to use an online search engine to retrieve information. I use the following code to call a webpage from the desktop:
string getPage = "http://www.theWebpage.com/";
System.Diagnostics.Process.Start(getPage);Once I am on that page, I want to pass the information from a textbox on my application directly to a search box on the webpage. Now, I can obviously do this by cutting and pasting the info into the webpage, but what I was wondering if I can have it load the info into the search box automatically when the page loads. The closest I can come now is to automatically copy the info from the textbox using the copy function, but that still requires to user to click and paste. I know how to do this from webpage to webpage but I have never done it from a desk application before. Can it be done? Thank You...Pat
PDTUM wrote:
string getPage = "http://www.theWebpage.com/"; System.Diagnostics.Process.Start(getPage);
string getPage = "http://www.thewebpage.com/?=" + LabelName.Text;
Edit: Added missing "=" sign and put code in code block.
Frazzle the name say's it all
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
John F. Woods