Is there a way to call a javascript function with a single parameter from a link click within the GridView Control? I need to pass the value of the parameter using <%Eval("myfield")%>
. How can this be accomplished?
<ItemTemplate>
<a href="#" onclick='"javascript:return changeview(<%Eval("Id")%>)"'>
<asp:Label style="color:white;" ID="Label1" BackColor='<%# System.Drawing.Color.FromName(Eval("color").ToString())%>' runat="server" Text='<% #Bind("doctorname") %>'>
</asp:Label>
</a>
</ItemTemplate>