leon24
asked on
how to execute a sub module in the same asp.net page even after post back using pop up dialog
hey guys
i've this problem. i'm using javascript to create a pop up box in asp.net 1.1.
the code is as follow:
<input type="submit" runat="server" name="ConfirmButton1" value="Purchasse" id="ConfirmButton1" onclick="return confirm ("Do you want to continue?");" />
when the user clicks on the button, a pop up window is created. when the user clicks on "ok", i need to execute a Sub method in my asp.net codes. how am i able to do that? pardon me for the lack of using asp.net terms coz i'm still new to it.
currently the code now is posting everything back to the same original page. and i cant do anything. please help
regards
i've this problem. i'm using javascript to create a pop up box in asp.net 1.1.
the code is as follow:
<input type="submit" runat="server" name="ConfirmButton1" value="Purchasse" id="ConfirmButton1" onclick="return confirm ("Do you want to continue?");" />
when the user clicks on the button, a pop up window is created. when the user clicks on "ok", i need to execute a Sub method in my asp.net codes. how am i able to do that? pardon me for the lack of using asp.net terms coz i'm still new to it.
currently the code now is posting everything back to the same original page. and i cant do anything. please help
regards
ASKER
i am trying to perform this
Sub LinkButton1_Click(sender As Object, e As EventArgs)
MyDeleteMethod(Request.for m("item"))
Response.redirect("http://www.yahoo.com")
End Sub
after i click on the button.
Sub LinkButton1_Click(sender As Object, e As EventArgs)
MyDeleteMethod(Request.for
Response.redirect("http://www.yahoo.com")
End Sub
after i click on the button.
Have you heard anything about AJAX?
Bob
Bob
ASKER
no dude..
how can that help?
how can that help?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ajax lets you register a method in a class that you can call through Javascript. It is a fairly large topic, but an enjoyable one for me.
We use AjaxPro here:
http://www.ajaxpro.info/?old=ajaxpro&ref=http%3a%2f%2fwww.google.com%2fsearch%3fnum%3d100%26hl%3den%26lr%3dlang_en%26newwindow%3d1%26q%3dajaxpro
But, there are other implementations from Micro$oft and others.
Bob
We use AjaxPro here:
http://www.ajaxpro.info/?old=ajaxpro&ref=http%3a%2f%2fwww.google.com%2fsearch%3fnum%3d100%26hl%3den%26lr%3dlang_en%26newwindow%3d1%26q%3dajaxpro
But, there are other implementations from Micro$oft and others.
Bob
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yeap thanks a lot guys. :)
ASKER