I loaded a html local file in a WebBrowser control within a WinForm. In the html code, I defined some variables in %variables%.
My question is how to transfer/reference strings/data from WinForm to the %viarables% defined in the loaded html page, and refresh the loaded html page displayed on the WebBrowser.
Following is the code of loading a local html file from. Any suggestion will be appreciated.
By the way, it is a WinForm application, not asp.Net.
string curDir = Directory.GetCurrentDirectory(); this.webBrowser1.Url = new Uri(String.Format("file:///{0}/{1}", curDir + "\\Forms", fileName));