<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WebBrowser control and InvokeScript</title><link>http://weblogs.asp.net/mnissen/archive/2005/09/23/425837.aspx</link><description>This is a little code nugget I planned to blog about a while ago, but forgot, so my recap and reasoning is not a 100% but hopefully it might be of help to someone struggelig with making the System.Windows.Forms.WebBrowser control execute scripts programatically</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>re: WebBrowser control and InvokeScript</title><link>http://weblogs.asp.net/mnissen/archive/2005/09/23/425837.aspx#7186326</link><pubDate>Mon, 31 Aug 2009 10:05:55 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7186326</guid><dc:creator>Fraser</dc:creator><author>Fraser</author><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;object result = doc.InvokeScript(&amp;quot;myfunction&amp;quot;, new object[] { &amp;quot;arg1&amp;quot;, 2, &amp;quot;etc&amp;quot; });&lt;/p&gt;
&lt;p&gt;calls 'myfunction' in the page passing the parameters &amp;quot;arg1&amp;quot;, 2, &amp;quot;etc&amp;quot;&lt;/p&gt;
&lt;p&gt;the 'result' object will have the same value as the result of the active scripting call.&lt;/p&gt;
&lt;p&gt;F.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7186326" width="1" height="1"&gt;</description></item><item><title>re: WebBrowser control and InvokeScript</title><link>http://weblogs.asp.net/mnissen/archive/2005/09/23/425837.aspx#7160008</link><pubDate>Mon, 03 Aug 2009 05:11:34 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:7160008</guid><dc:creator>samir</dc:creator><author>samir</author><description>&lt;p&gt;Is there a way to pass the parameters while calling execScript Method such as win.execScript(&amp;quot;Update_UI_From_Values(number1, number2,number3);&amp;quot;, &amp;quot;javascript&amp;quot;); as I have to pass three values from C# variables to Javascript function. I do appreciate your help!!!&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=7160008" width="1" height="1"&gt;</description></item><item><title>re: WebBrowser control and InvokeScript</title><link>http://weblogs.asp.net/mnissen/archive/2005/09/23/425837.aspx#6058053</link><pubDate>Tue, 01 Apr 2008 21:51:10 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6058053</guid><dc:creator>John</dc:creator><author>John</author><description>&lt;p&gt;I have been running into problems using InvokeScript to return the array from a JavaScript function. Works fine for a single string though.&lt;/p&gt;
&lt;p&gt;Any help?&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6058053" width="1" height="1"&gt;</description></item><item><title>re: WebBrowser control and InvokeScript</title><link>http://weblogs.asp.net/mnissen/archive/2005/09/23/425837.aspx#3479154</link><pubDate>Sun, 12 Aug 2007 09:45:37 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:3479154</guid><dc:creator>Phillip Pearson</dc:creator><author>Phillip Pearson</author><description>&lt;p&gt;At least in C# 2005 Express, the following works:&lt;/p&gt;
&lt;p&gt;doc.InvokeScript(&amp;quot;Update_UI_From_Values&amp;quot;);&lt;/p&gt;
&lt;p&gt;The parameter is just a function name... perhaps the &amp;quot;();&amp;quot; after it was what was breaking it for you.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=3479154" width="1" height="1"&gt;</description></item><item><title>re: WebBrowser control and InvokeScript</title><link>http://weblogs.asp.net/mnissen/archive/2005/09/23/425837.aspx#425843</link><pubDate>Fri, 23 Sep 2005 12:08:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:425843</guid><dc:creator>andres</dc:creator><author>andres</author><description>Testing&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=425843" width="1" height="1"&gt;</description></item></channel></rss>