calling server side event from html button control

后端 未结 6 1588
自闭症患者
自闭症患者 2020-12-13 14:32

I am creating an application using ASP.Net, in which I have a HTML button on an aspx page.



        
6条回答
  •  不思量自难忘°
    2020-12-13 15:00

    Please follow this tutorial: http://decoding.wordpress.com/2008/11/14/aspnet-how-to-call-a-server-side-method-from-client-side-javascript/

    On a sidenote: ASP.NET generates a client side javascript function that you can call from your own functions to perform the postback you want.

    -- More info on hijacking the postback event:

    • http://msdn.microsoft.com/en-us/library/aa720099(vs.71).aspx
    • http://wiki.asp.net/page.aspx/1082/dopostback-function/
    • http://geekswithblogs.net/mnf/archive/2005/11/04/59081.aspx

提交回复
热议问题