Posted on: 5/8/2014 6:09:17 AM | Views : 424

I have try to store data into session on gridview ENTER key press Event but it's not working when I try to press enter than nothing is going to be happen.
My code

Java Script
<script type="text/javascript"> function Clicked(Id) { if (event.keyCode == 13)
{
PageMethods.SetSessionValue(Id);
alert(Id); window.close(); window.opener.location.reload(); return false } } </script>
.cs
protected void GRDAccountMasHelp_OnRowDataBound(object sender, GridViewRowEventArgs e) {
if (e.Row.RowType == DataControlRowType.DataRow)
{ e.Row.TabIndex = -1; e.Row.Attributes["onclick"] =string.Format("javascript:SelectRow(this, {0});", e.Row.RowIndex); e.Row.Attributes["onkeydown"] = "javascript:return SelectSibling(event);";
e.Row.Attributes.Add("onkeypress", "Clicked('&qu ...

Go to the complete details ...