Its my Html code:
- "return false" ;>
Testing - "X-UA-Compatible" content="IE=EmulateIE11,IE=9; IE=8; IE=7; IE=EDGE" />
- "stylesheet" type="text/css" href="style.css">
- ="account-info">
- Select the FBX File
- "file" id="inputfile" onchange="ReadFile()" />
Its my C# code:
- private void Window_Loaded(object sender, RoutedEventArgs e)
- {
- string curdir = Directory.GetCurrentDirectory();
- webBrowser.Navigate(String.Format("file:///{0}/sample.html", curdir));
- }
- private void btngetdatafrombrowser_Click(object sender, RoutedEventArgs e)
- {
- try
- {
- dynamic objdata = webBrowser.InvokeScript("GetData");
- if (objdata != null)
- MessageBox.Show(objdata);
- }
- catch (Exception ex)
- {
- }
- }
- private void webBrowser_Navigated(object sender, NavigationEventArgs e)
- {
- string curdir = Directory.GetCurrentDirectory();
- var data = Application.GetCookie(new Uri(String.Format("file:///{0}/sample.html", curdir)));
- }
- private void webBrowser_Navigating(object sender, NavigatingCancelEventArgs e)
- {
- }
Replies
Know the answer? Post it — somebody with the same question will find it here.