passing rowindex to javascript
<p>I am trying to pass row index from inside my gridview to javascript function and I am getting an error that databind does not contain a property name container.</p>

<pre><code>&lt;label style="text-decoration: underline" onclick="javascript:GetSelectedRow('&lt;%# Eval("ID") %&gt;','&lt;%# Eval("root__level") %&gt;','&lt;%# Eval("ParentMclid") %&gt;','&lt;%# Eval("systempath") %&gt;','&lt;%# Eval("Container.DataItemIndex + 1") %&gt;);"&gt;&lt;%#Eval("ID") %&gt;&lt;/label&gt;
</code></pre>

<p>I just want to pass the rowindex of the gridview to the javascript function.
.</p>
