asp.net postback with jquery?

Posted by mark smith on Stack Overflow See other posts from Stack Overflow or by mark smith
Published on 2009-04-15T12:06:52Z Indexed on 2010/06/11 3:02 UTC
Read the original article Hit count: 540

Filed under:
|
|
|
|

Hi there,

Can anyone help, I have a asp.net button but recently replaced it with a standard html button ... What i need to do is postback to an asp.net page and ensure a method is called

the button before was an asp.net button so i had this event

Protected Sub btnCancelar_Click(ByVal sender As Object, ByVal e As System.EventArgs) 
    UtilTMP.DisposeObjects()
    Server.Transfer("~\Forms\test.aspx", True)
End

But i was using a button with javascript ALERT and recently changed to Jquery UI Model dialog but it doesn't wait for me to answer the question.. the postback happenes immediatly ... so i decided to change to a standard HTML button ... but i need to postback to the asp.net page and call a method like.

If i just postback it won't call the cleanup

Protected Sub Cleanup()
    UtilTMP.DisposeObjects()
    Server.Transfer("~\Forms\test.aspx", True)
End

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about jQuery