Hi,
Please wirte inside the .aspx.cs page
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
LinkButton lbtnSetHidden = (LinkButton)e.Row.FindControl("lbtnSetValue");
lbtnSetHidden.Attributes.Add("onclick", "return setValueInHidden('" + e.Row.Cells[0].Text + "')");
}
}
write inside the .aspx page
<script language="javascript" type="text/javascript">
//<![CDATA[
</script>
Please do let me know, if you have any doubt.
Please provide "
Vote" if this would be helpful, and make "
Accept Answer" if this would be correct answer.:rose:
Thanks,
Imdadhusen