Problem get result of a confirm dialogbox after some server code

B

Billy

Hi...

I have a problem with a confirm dialog box. I want to
execute some code and then prompt the user with a confirm
dialog box who's message will depend on the result of the
execution from the server. I made a function Confirm
(Message) that sends the javascript of the confirm
function via a RegisterStartupScript method. The result
of the dialog is sent to a hidden field on the caller's
page, so I could react to the user decision in the
page_load of the caller's page. The problem is that the
script appears after the page_load (normal 'cause I used
RegisterStartupscript), and no postback are raised when
the dialog box closed.

Is there a way to call a postback in some client script
or another way to deal with such problem. I tried with
some Remote Script but it didn't work...

Please help me... Thanks a lot for your time :)

Billy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top