__doPostBack() is causing post back but not calling button click event in aspx page

后端 未结 2 1376
温柔的废话
温柔的废话 2021-02-09 09:16

I am using a aspx page which is having a button.

 
         


        
相关标签:
2条回答
  • 2021-02-09 09:58

    I solved this question using this code:

      document.all('Button1').click();
    
    0 讨论(0)
  • 2021-02-09 10:08

    have you tried using the UniqueID instead of the ClientID?

    __doPostBack('<%= savebtn.UniqueID %>', "");
    

    Also have a look at this quick tutorial on dopostback:

    0 讨论(0)
提交回复
热议问题