Author: JaneWilliams | Posted on: 11/13/2008 7:38:32 AM | Views : 246

I have a web page with assorted gridviews and detailsviews on it, and some fairly complex validation attached to a Submit button. As a result of the validation, it may fail (displaying a message on the screen), it may succeed (and then redirect to an appropriate page depending on the answers), or, and this is what I'm struggling with, detect a "warning" condition, such that I want to display a message to the user, and have them acknowledge it, before redirection to the next appropriate page.

How do I display that "alert" type message? Simple Javascript seems to get lost, as the redirection takes me on to the next page before it has a chance to display. I suspect I'm getting tangled in the interaction between server-side and client-side here.

My validation is in a routine called:

Protected Sub Submit ...

Go to the complete details ...