gridview's javascript return wrong value
<p>on my popup page i have a gridview, when client clicks a row it sends the datakey to the parent page </p>

<p>with this javascript;</p>

<pre><code>&lt;script type="text/javascript"&gt;
    function Done(val) {
        window.returnValue = val;
        window.close();
    }
&lt;/script&gt;
</code></pre>

<p>i put a break point on javascript code , when i click the row , i see that gridview sends the true value such as Done(02002) , i see that on my griview </p>

<p>but when i look at the script val = 1026 how this could be happening there is even no value such as 1026 on my page
thats how i add the javascript to my gridview</p>

<pre><code>protected void grdSearch_RowDataBound(object sender, GridViewRowEventArgs e)
{
       if ((e.Row.RowType == DataControlRowType.DataRow))
       {
           //string dd = e.Row.Cells[0].Text;
          // ((Button)e.Row.FindControl("btnSec")).Attributes.Add("onclick", "Done(" &gt;+ e.Row.Cells[0].Text + ")");
           e.Row.Attributes.Add("onclick", "Done(" + e.Row.Cells[0].Text + ")");
           e.Row.Attributes.Add("onmouseover", &gt;"this.style.backgroundColor='#3f529c';this.style.color='#FFFFFF';this.style.cursor='pointe&gt;r';");
           e.Row.Attributes.Add("onmouseout", &gt;"this.style.backgroundColor='#FFFFFF';this.style.color='#3f529c'; ");
           string dd = e.Row.Cells[0].Text;
       }
 }
</code></pre>
