<分区>
我使用静态 WebMethod
方法调用了使用 jQuery 的代码隐藏方法。
Web 方法调用成功,但在尝试访问文本框控件时出现错误。非静态字段、方法或属性需要对象引用。
[WebMethod]
public static Savedata()
{
//code to insert data to DB
//after inserting data successfully i need to change the text box text like following.
txtStatus.Text="Data Received";
}