Q:

how to Pass value from windows application form c# to html page

I made an project for access google map from windows application with in that just I created one form with button and textbox name called txtsource and txtdestination , when the user perform click option on button the bellow code will execute 
string startupv = (Application.StartupPath + "\\Default.htm".ToString());            
System.Diagnostics.Process.Start(startupv);

and call Default.html page 
in default.html page having two textbox for get the user source and destination value .What I actually expecting here mean from the windows application txtsource and txtdestination textbox value should pass default.html page textbox.
With out using Webbrowser.

A:

If you are just looking for a solution where you pass some values to a web site and show the response on windows application then you can try.
HttpWebRequest request =(HttpWebRequest)WebRequest.Create("http://somewebsite.com/Default.html?source=SomeValue&Destination=SomeValue");

HttpWebResponse response = (HttpWebResponse)request.GetResponse();

string content = new StreamReader(response.GetResponseStream()).ReadToEnd();

if you want to open a web browser then passing the values by query string as GET parameters might work.
string startupv = ("http:\\somewebsite.extension\" + 
    "\Default.html?source=SomeValue&Destination=SomeValue".ToString()); 

Get these values from the link in the web application.

