I am using ajax call back for void method.But if i call other method in the calling method.M geeting error.Any help me would be appericiated.
Below is my code
[WebMethod]
public static void BindNextActions()
{
BindGridView(); ---Error at this point..its a private void method
}
You are trying to call a non-static function from a static function. This is the reason for the error. The solution can be found in the following link.
How do I call a non-static method from a static method in C#?