ajax with page method

后端 未结 2 1812
误落风尘
误落风尘 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:11

    Take a look at my answer to this related question here. In short, you create a new instance of the grid and capture its output manually.

    0 讨论(0)
  • 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.

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