mshtml.HTMLDocumentClass doc = (mshtml.HTMLDocumentClass)IE.Document;
object script= doc.Script;
object[] args = { FirstArgument , "FrameContent", "tree.aspx", "FrameNav" };
script.GetType().InvokeMember("ZweiFrames",
System.Reflection.BindingFlags.InvokeMethod,
null, script,args);
Marshal.ReleaseComObject(script);
I used the above code to execute java script and getting an error.(Exception has been thrown by the target of an invocation) ( inner Exception : Insufficient memory to continue the execution of the program).
Please help me on this..
Thanks in advance.. Unni.
Have you checked
ZweiFrames
js function - may be there is issue in that function with arguments supplied by you?BTW, yet another way to execute javascript function can be something like
This is of course assuming that your parameters can be represented in a string form.