Calling a function in html file from c# code

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2008
Posts: 33
Reputation: SubProf is an unknown quantity at this point 
Solved Threads: 0
SubProf's Avatar
SubProf SubProf is offline Offline
Light Poster

Calling a function in html file from c# code

 
0
  #1
Sep 16th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: Calling a function in html file from c# code

 
0
  #2
Sep 16th, 2008
Is this onclick in the html file or your c# app? I dont see why you would have a problem doing 2 loads in 1 call.

Perhaps some code showing the non working code would help us..
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 33
Reputation: SubProf is an unknown quantity at this point 
Solved Threads: 0
SubProf's Avatar
SubProf SubProf is offline Offline
Light Poster

Re: Calling a function in html file from c# code

 
0
  #3
Sep 16th, 2008
The onclick is in the html file. I managed to solve my problem - I had a typo in the code when calling the second function. Thanks for your help anyway

SubProf
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC