Hello,
I am using web browser control in C#2.0. I need to insert the Javascript dynamically in the head section of the page and invoke that script dynamically. Can please anyone tell me how to do that?
p.s. Script doesn't return any values as it is a very simple script.
Thanks.
Scott LyslePosted Nov 1, 2007, 12:34 AM
You might want to take a look at the help file example of ClientScriptManager.RegisterClientScriptBlock.
The example will show you how to register a client side script; this will allow you to define a javascript function and to execute it.