Link to home
Start Free TrialLog in
Avatar of leon24
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 (&quot;Do you want to continue?&quot;);" />

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
Avatar of leon24
leon24

ASKER

oh and i need it to post it back to the same page because the page has a drop down list which posts back values everytime a user selects a new index.
Avatar of leon24

ASKER

i am trying to perform this

Sub LinkButton1_Click(sender As Object, e As EventArgs)

MyDeleteMethod(Request.form("item"))
Response.redirect("http://www.yahoo.com")

End Sub



after i click on the button.
Avatar of Bob Learned
Have you heard anything about AJAX?

Bob
Avatar of leon24

ASKER

no dude..

how can that help?
ASKER CERTIFIED SOLUTION
Avatar of vinodhsomasekharan
vinodhsomasekharan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of leon24

ASKER

Yeap thanks a lot guys. :)