gridview databind in webmethod
hi every one,
I am using modelpopupextender.this will be shown on keypress event (F2 press) using javascript. This modelpopup,targeted to panel,having a gridview where i bind data during the form view databound event.But the problem is i need to rebind the gridview when F2 is pressed,untill formview mode is not changed.This rebind is to be done bcoz, when a new record is entered in masters,it is not been shown in the gridview as post back is not happening. So i want to try it by web method. But in static webmethod,it is unable to find the gridview control. So,can anyone suggest,or send the related code to solve the problem. I hope u understood the problem.
[WebMethod(EnableSession = true)]
public static int fun()
{
//here i am unable to find the control
}
is this the right method to do?
Thanks
|