c#, execute script function with mshtml?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Taewon Lee (taewon_at_gmail.com)
Date: 06/25/04


Date: Fri, 25 Jun 2004 23:28:04 +0900

Hi all,

I want to execute some script(javascript) function that's in html page.

There's HOWTO document in msdn for C++ so I tried the same thing in c# as
follows but it doesn't seem to work.
http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/q185/1/27.asp&NoWebContent=1

    object [] param = {2};
    string val =
(string)m_doc.GetType().InvokeMember("script_function_name",
System.Reflection.BindingFlags.InvokeMethod, null, m_doc, param);

Is something wrong? Please help..

Thanks in advance for any help.



Relevant Pages

  • [Full-Disclosure] SCT javascript execution vulnerability
    ... SCT Campus Pipeline is the Web platform of choice at over 175 ... Javascript Execution: The email handling portion of this software displays ... It does a noble job of filtering scripting in html files but certain ... execute any command such as deletemessagefrom <body ...
    (Full-Disclosure)
  • [Full-Disclosure] SCT javascript execution vulnerability
    ... SCT Campus Pipeline is the Web platform of choice at over 175 ... Javascript Execution: The email handling portion of this software displays ... It does a noble job of filtering scripting in html files but certain ... execute any command such as deletemessagefrom <body ...
    (Full-Disclosure)
  • SCT javascript execution vulnerability
    ... SCT Campus Pipeline is the Web platform of choice at over 175 ... Javascript Execution: The email handling portion of this software displays ... It does a noble job of filtering scripting in html files but certain ... execute any command such as deletemessagefrom <body ...
    (Bugtraq)
  • [VulnWatch] SCT javascript execution vulnerability
    ... SCT Campus Pipeline is the Web platform of choice at over 175 ... Javascript Execution: The email handling portion of this software displays ... It does a noble job of filtering scripting in html files but certain ... execute any command such as deletemessagefrom <body ...
    (VulnWatch)
  • [VulnWatch] SCT javascript execution vulnerability
    ... SCT Campus Pipeline is the Web platform of choice at over 175 ... Javascript Execution: The email handling portion of this software displays ... It does a noble job of filtering scripting in html files but certain ... execute any command such as deletemessagefrom <body ...
    (Full-Disclosure)