How to use __doPostBack()

后端 未结 7 1372
离开以前
离开以前 2020-11-22 04:43

I\'m trying to create an asyncrhonous postback in ASP.NET using __doPostBack(), but I have no idea how to do it. I want to use vanilla JavaScript.

Some

7条回答
  •  终归单人心
    2020-11-22 04:59

    This is how I do it

        public void B_ODOC_OnClick(Object sender, EventArgs e)
        {
            string script="";
            Page.ClientScript.RegisterStartupScript(this.GetType(),"JsOtherDocuments",script);               
        }
    

提交回复
热议问题