I am trying to pass a row index to my javascript function using the below line that resides inside the gridview, but I keep getting an error.
Below is my code.
<asp:TemplateField HeaderText="MCLID">
<ItemTemplate>
<label style="text-decoration: underline"
onclick="javascript:warningMessage('<%# Eval("ID") %>','<%# Eval("systempath").ToString().Replace("'",@"\'") %>','<%# Eval("root_level") %>','<%# Eval("Parentid") %>','<%# Eval(Container.DataItemIndex +1) %>');"><%#Eval("ID") %></label>
</ItemTemplate>
</asp:TemplateField>
any help will be appreciated.