RegisterStartupScript - Postback from script
I am developing in ASP.NET and have come across a problem: I need to prompt the user with a yes / no question, which I am doing by inserting a window.confirm() script into a RegisterStartupScript command(), as this needs to be done from a server-side function. The script also writes to a hidden control whether the the user clicked on OK or cancel.
This works fine, but I need a postback to occur after the user has clicked OK so that I can carry out the process the user was prompted for. Otherwise there is no way the code can respond to this event. Any Ideas?
Thanks for your help,
Gary
|