IE9 Javascript Undefined Variables
<p>I have the following in my code, which has worked fine in IE 7 and 8, but it no longer works in IE 9 (unless the user runs in compatibility mode of course...)</p>

<pre><code>&lt;asp:Label ID="invNumLink" runat="server" Font-Underline="true" ForeColor="Blue" Text='&lt;%# Eval("Order_No") %&gt;' createDate='&lt;%# string.Format(Eval("create_date").ToString(),"MM/dd/yyyy") %&gt;'
                                operatorNo='&lt;%# Eval("operator_no") %&gt;' orderNo='&lt;%# Eval("Order_No") %&gt;' loc='&lt;%# Eval("Location") %&gt;' table='&lt;%# Eval("table_no") %&gt;' recall='&lt;%# Eval("recall_code") %&gt;'
                                orderID='&lt;%# Eval("ID") %&gt;' acrID='&lt;%# Eval("ACR_ID") %&gt;'
                                onclick="goToDetail(this.orderNo,this.createDate, this.operatorNo, this.loc, this.table, this.recall, this.orderID, this.acrID);" style="cursor:pointer" &gt;&lt;/asp:Label&gt;

&lt;script type="text/javascript"&gt;
    function goToDetail(orderNo, createDate, operatorNo, loc, table, recall, orderID, acrID) {
        var URL = 'OrderDetailView.aspx?orderNo=' + orderNo + '&amp;' + 'createDate=' + createDate + '&amp;' + 'operatorNo=' + operatorNo + '&amp;' + 'loc=' + loc + '&amp;' + 'table=' + 
                                        table + '&amp;' + 'recall=' + recall + '&amp;' + 'id=' + orderID + '&amp;' + 'acrID=' + acrID;
        day = new Date();
        id = day.getTime();
        window.open(URL, id, 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1100,height=700,left = 62,top = 15')
    }
&lt;/script&gt;
</code></pre>

<p>In IE9 all of the values sent to the "goToDetail" function are undefined.  Any ideas on how to fix this?</p>

<p><strong>EDIT</strong></p>

<p>I resolved this by adding the call to javascript from the code behind:</p>

<pre><code>invNumLink.Attributes.Add("onclick", string.Format("goToDetail('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}'); return false;", item.GetDataKeyValue("Order_No").ToString(),
                string.Format(item.GetDataKeyValue("Create_Date").ToString(), "MM/dd/yyyy"),item.GetDataKeyValue("Operator_No").ToString(), item.GetDataKeyValue("Location").ToString(), 
                item.GetDataKeyValue("table_no").ToString(), item.GetDataKeyValue("recall_code").ToString(), item.GetDataKeyValue("ID").ToString(),item.GetDataKeyValue("ACR_ID").ToStrin
</code></pre>

<p>Thanks,</p>

<p>Aaron</p>
