Postback from client-generated links (AJAX)
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.
精彩评论