I'm having a problem and I cannot understand why. I have a GridView and some other controls in an UpdatePanel. I'm trying to select a row by clicking anywere on it, so I'm using the following code to make the selection possible:
r.Attributes.Add("onclick","javascript:" + Page.ClientScript.GetPostBackEventReference(grdUtilizatori, "Select$" +r.RowIndex,true));
My problem is that the page is making full postback (the entire page is coming back from the server, not just the updatepanel).
If I'm using a simple Select command, the postback will be just partial. I compared the generated source for the page and the javascript looks identical.
<a href="javascript:__doPostBack('ctl00$CPH$grdUtilizatori','Select$1')">Select</a>
<tr onclick="javascript:__doPostBack('ctl00$CPH$grdUtilizatori','Select$0')">
Can you please tell me what am I doing wrong?