开发者

Postback from client-generated links (AJAX)

开发者 https://www.devze.com 2023-03-16 11:18 出处:网络
I have AJAX functionality on my page which creates anchor tags. I kno开发者_JAVA技巧w I can fabricate a postback for these links by setting the href attribute to javascript:__doPostBack(\'ControlID\',

I have AJAX functionality on my page which creates anchor tags. I kno开发者_JAVA技巧w I can fabricate a postback for these links by setting the href attribute to javascript:__doPostBack('ControlID','SomeArgument')

How do I execute server code based on this fake postback for 'controls' that are created on the client side?


You need to implement IPostBackEventHandler on your page.

0

精彩评论

暂无评论...
验证码 换一张
取 消