| | |
Calling a function in html file from c# code
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
Hello everyone,
I have a html file (that is displayed in a webbrowser) which contains an onclick function that calls an external function in c# code. I have this part working and after the external function is finished the webbrowser navigates to a new file. The html file contains frames and after the external function is finished executing the new file is displayed in one of the frames. However I need the two frames to change to different files at the same time. I know that it is possible to change the contents of two frames at the same time in html code by calling a function but the problem is that I cannot get the two functions to execute as they both need to run when the onclick event is actioned. To summarise: a link is clicked in webbrowser window in frame 1. when the link is clicked the 'onclick' event calls an external function and a new html file is generated and displayed. I need a second function to execute when the link is clicked where frame 2 is changed to display a different file at the same time as frame 1 is displaying the new html file.
Thanks in advance
SubProf
I have a html file (that is displayed in a webbrowser) which contains an onclick function that calls an external function in c# code. I have this part working and after the external function is finished the webbrowser navigates to a new file. The html file contains frames and after the external function is finished executing the new file is displayed in one of the frames. However I need the two frames to change to different files at the same time. I know that it is possible to change the contents of two frames at the same time in html code by calling a function but the problem is that I cannot get the two functions to execute as they both need to run when the onclick event is actioned. To summarise: a link is clicked in webbrowser window in frame 1. when the link is clicked the 'onclick' event calls an external function and a new html file is generated and displayed. I need a second function to execute when the link is clicked where frame 2 is changed to display a different file at the same time as frame 1 is displaying the new html file.
Thanks in advance
SubProf
![]() |
Similar Threads
- Passing data from forms from one page to another (JavaScript / DHTML / AJAX)
- calling Python function from C/C++ (Python)
- how to pass values to called function (JavaScript / DHTML / AJAX)
- Can someone help me here. (JavaScript / DHTML / AJAX)
- Struggling with Captcha (PHP)
- Calling a PHP function from HTML menu (PHP)
- Dropdown box in Python (Python)
- Array troubles? (C++)
- C++ BASICS ==> Pointers, Call by Reference/Value, Inheritance, Functions & Arrays (C++)
- RE: Leaked Windows Source Code (IT Professionals' Lounge)
Other Threads in the C# Forum
- Previous Thread: XML attributes to Combobox
- Next Thread: webBrowser.GoBack method and frames
| Thread Tools | Search this Thread |
.net access algorithm alignment app array barchart bitmap box broadcast c# c#gridviewcolumn cast check checkbox client combobox communication control conversion csharp custom database datagrid datagridview dataset datatable datetime degrees development draganddrop drawing elevated encryption enum excel file focus form format forms function gdi+ hospitalmanagementsystem httpwebrequest image index input install java label list listbox localization login mandelbrot math messagebox mouseclick mysql operator path photoshop picturebox pixelinversion plotting pointer post programming radians read regex remote remoting richtextbox server sleep socket sql statistics stream string stringformatting sun table text textbox thread time timer update usercontrol validation visualstudio webbrowser whileloop windows winforms wpf xml






