<?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>Joe Audette, MCSD, MCDBA, MCSE - All Comments</title><link>http://weblogs.asp.net/joeaudette/default.aspx</link><description>Founder and primary developer of mojoPortal, an open source content management system.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Debug Build: 20510.895)</generator><item><title>re: Silverlight + Google Gears = Awesome! at least in Firefox</title><link>http://weblogs.asp.net/joeaudette/archive/2008/11/29/silverlight-google-gears-awesome-at-least-in-firefox.aspx#6765593</link><pubDate>Thu, 04 Dec 2008 15:29:44 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6765593</guid><dc:creator>joeaudette</dc:creator><description>&lt;p&gt;Hi Craig,&lt;/p&gt;
&lt;p&gt;Thanks for the suggestion. I'm already doing something similar when passing in an array of params:&lt;/p&gt;
&lt;p&gt;ScriptObject jsArray = HtmlPage.Window.Invoke(&amp;quot;createJsArray&amp;quot;, parameters.Length) as ScriptObject;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;for (int i = 0; i &amp;lt; parameters.Length; i++)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HtmlPage.Window.Invoke(&amp;quot;assignArray&amp;quot;, jsArray, i, parameters[i]);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//HtmlPage.Window.Invoke(&amp;quot;passArrayTest&amp;quot;, jsArray);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return gDb.Invoke(&amp;quot;execute&amp;quot;, sqlCommand, jsArray) as ScriptObject;&lt;/p&gt;
&lt;p&gt;I'm able to execute the sql and get a resultSet object, the problem in IE is when trying to get the field name or value from the resultSet. I've tried a lot of different syntax but I get invalid type or out of range errors in IE 7 using these methods (all of which work in FF):&lt;/p&gt;
&lt;p&gt;public string GetFieldName(int fieldIndex)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// these work with Firefox but not IE7&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// IE7 throws an invalid argument exception&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//return gResult.Invoke(&amp;quot;fieldName&amp;quot;, parameters).ToString();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return gResult.Invoke(&amp;quot;fieldName&amp;quot;, fieldIndex).ToString();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//return gResult.Invoke(&amp;quot;fieldName&amp;quot;, new object[]{fieldIndex}).ToString();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//return HtmlPage.Window.Invoke(&amp;quot;getFieldName&amp;quot;, new object[]{ gResult, fieldIndex}).ToString();&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;catch (Exception ex)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Logger.LogError(&amp;quot;GearsResultSet.GetFieldName&amp;quot;, ex);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return string.Empty;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;all of these approaches work in FF but not in IE 7. I tried adding your method to the js and invoking it to create a ScriptObject to pass into getFieldName, but the result is the same.&lt;/p&gt;
&lt;p&gt;So I can execute, get a resultset , check isValidRow returns true and I can move through the results with moveNext. Its just the fieldName and field methods that break in IE 7. I can even call fieldByName and it works.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Joe&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6765593" width="1" height="1"&gt;</description></item><item><title>re: Silverlight + Google Gears = Awesome! at least in Firefox</title><link>http://weblogs.asp.net/joeaudette/archive/2008/11/29/silverlight-google-gears-awesome-at-least-in-firefox.aspx#6765299</link><pubDate>Thu, 04 Dec 2008 08:55:54 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6765299</guid><dc:creator>Craig Sutherland</dc:creator><description>&lt;p&gt;I also have the same problem with IE7.0. After some playing around I fixed out a work-around (although it is a hack).&lt;/p&gt;
&lt;p&gt;To the HTML page that contains the Silverlight control I added a javascript function as follows:&lt;/p&gt;
&lt;p&gt;function convertArgs(){&lt;/p&gt;
&lt;p&gt; &amp;nbsp; return args;&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;The I call this function first from the Silverlight code-behind to convert the arguments from a .Net array to a javascript array.&lt;/p&gt;
&lt;p&gt;Not the best, but at least it now works.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6765299" width="1" height="1"&gt;</description></item><item><title>SilverTrader: Resize of Windows &amp;laquo; Tales from a Trading Desk</title><link>http://weblogs.asp.net/joeaudette/archive/2008/11/29/silverlight-google-gears-awesome-at-least-in-firefox.aspx#6762176</link><pubDate>Tue, 02 Dec 2008 00:02:05 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6762176</guid><dc:creator>SilverTrader: Resize of Windows « Tales from a Trading Desk</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;SilverTrader: Resize of Windows &amp;amp;laquo; Tales from a Trading Desk&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6762176" width="1" height="1"&gt;</description></item><item><title>Reflective Perspective - Chris Alcock  &amp;raquo; The Morning Brew #234</title><link>http://weblogs.asp.net/joeaudette/archive/2008/11/29/silverlight-google-gears-awesome-at-least-in-firefox.aspx#6761442</link><pubDate>Mon, 01 Dec 2008 10:50:46 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6761442</guid><dc:creator>Reflective Perspective - Chris Alcock  » The Morning Brew #234</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Reflective Perspective - Chris Alcock &amp;nbsp;&amp;amp;raquo; The Morning Brew #234&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6761442" width="1" height="1"&gt;</description></item><item><title>myspace defaults</title><link>http://weblogs.asp.net/joeaudette/archive/2008/03/28/one-bookmarking-service-to-rule-them-all-and-in-the-widget-bind-them.aspx#6178990</link><pubDate>Sun, 11 May 2008 15:01:35 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6178990</guid><dc:creator>myspace defaults</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;myspace defaults&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6178990" width="1" height="1"&gt;</description></item><item><title>One Bookmarking Service to Rule Them All and in The Widget Bind Them</title><link>http://weblogs.asp.net/joeaudette/archive/2008/03/28/one-bookmarking-service-to-rule-them-all-and-in-the-widget-bind-them.aspx#6046302</link><pubDate>Sat, 29 Mar 2008 17:26:51 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6046302</guid><dc:creator>DotNetKicks.com</dc:creator><description>&lt;p&gt;You've been kicked (a good thing) - Trackback from DotNetKicks.com&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6046302" width="1" height="1"&gt;</description></item><item><title>re: SubSonic - All Your Databases Are Belong To Us</title><link>http://weblogs.asp.net/joeaudette/archive/2008/03/05/subsonic-all-your-databases-are-belong-to-us.aspx#5920356</link><pubDate>Wed, 05 Mar 2008 16:19:42 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5920356</guid><dc:creator>rrobbins</dc:creator><description>&lt;p&gt;I've just started to use SubSonic too. It is a great way to automate the creation of your basic table administration (i.e scaffold) for CRUD. This will really save me a lot of time when it comes to that chore. &lt;/p&gt;
&lt;p&gt;I hope SubSonic can make a web application portable for MySQL and SQL Server because I frequently have clients that want to change hosting companies which only offer one of the other.&lt;/p&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5920356" width="1" height="1"&gt;</description></item></channel></rss>