I am trying to get an Eval value from my radgrid to my c# codebehind. The value is binded to a hiddenfield and I want to get the value after I hit the built in edit button. To achieve this I am trying to get the hiddenvalue1 to javascript and then somehow get it to my c# code behind. The closest thing I have come to that is binding the value to a hyperlink that when clicked shows an alert with the binded value as shown below. I need something that is automatic where I don’t need to hit a button. Can anyone help?
<asp:HyperLink id="hklk" runat="server" Text='<%# Eval("id") %>' onclick="return GiveAlert(this);"></asp:HyperLink>
function GiveAlert(con)
{
alert(con.innerHTML);
return false;
}