Problem get result of a confirm dialogbox after some server code

  • Thread starter Thread starter Billy
  • Start date Start date
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
 
Back
Top