我正在使用 ajax 回调 void 方法。但是如果我在调用方法中调用其他方法。M geting 错误。任何帮助我都会得到帮助。 下面是我的代码
[WebMethod]
public static void BindNextActions()
{
BindGridView(); ---Error at this point..its a private void method
}
最佳答案
您正尝试从静态函数调用非静态函数。这就是错误的原因。解决方案可以在以下链接中找到。 How do I call a non-static method from a static method in C#?
关于javascript - 调用页面方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14191480/