ajax with page method

后端 未结 2 1814
误落风尘
误落风尘 2021-01-28 22:23

I have a gridview inside an updatepanel and I have a javascript that calls a page method using jquery. I\'d like the page method to refresh the gridview based on the parameter i

2条回答
  •  温柔的废话
    2021-01-28 23:27

    ok so the solution is to use _doPostBack in javascript:

       __doPostBack('MyPanel', DateString);
    

    The page method is for sending and receiving data only, not for doing postbacks on updatepanels.

提交回复
热议问题