Java スクリプトから関数を呼び出すための Web メソッドを作成します。私の aspx コード ビハインドにはビュー ステート ["cust_id"] があります。この cust_id をパブリック静的メソッドで使用したいのですが、これはできません。これを行うのを手伝ってください。
[WebMethod]
public static void add_plan_items(string plans)
{
string cust_id = Convert.ToString(ViewState["cust_id"]);//Error : object reference is required for non-static ...
}