__doPostBack reloading entire page instead of just the UpdatePanel

veniamen

New Member
In my javascript, I have the following line:\[code\]__doPostBack('MyPanel', MyParam);\[/code\]In my code behind, I use MyParam to query a database and bind the result to a gridview that's inside the MyPanel updatepanel. The updatemode of the updatepanel is set to conditional and in the postback part of the code I have \[code\]MyPanel.Update();\[/code\]The updatepanel works fine when I'm doing sorting and paging; only the panel is refreshed. However, when I trigger the updatepanel with my javascript, I see the traffic in firebug showing that the entire page is being refreshed.What's the solution?Thanks.
 
Top