我通过 jquery 调用我的服务器端方法,并从该方法中我试图访问页面控制但给出错误。这是我的示例代码
[WebMethod]
public static findEvents(string PID)
{
Page page = HttpContext.Current.Handler as Page;
Panel pn=(Panel)page.FindControl("hdContainer");
}
but find control gives null error. please give any solution to find control in static method.