Am a novice at this. Trying to write a piece of code for personal use. Intent is to load a web page from a file (.html) and pass to it three parameters using a query string. Code is written in Visual C# with .net CF 3.5. Target platform is Windows Mobile. Using Windows Mobile 6 SDK. Example code is below passing only one parameter:
-
private void RefreshData()
-
{
-
string temp_url="file://\\Program Files\\Test\\Test.html";
-
string PostDataStr = "?Type=NewType";
-
-
temp_url = temp_url + PostDataStr;
-
-
Uri address = new Uri(temp_url);
-
webBrowser.Navigate(address);
-
}
-
When I try to run this on the emulator, it gives an unhandeld exception at the webBrowser.Navigate line. If I try to run it without the "PostDataStr" (no query string) it loads fine. Have spent hours searching for the correct way to do this, to no avail. What is the best method for doing this? If this has been answered elsewhere, I apologize in advance and please direct me to the appropriate post.