Last post Jul 09, 2007 01:57 PM by rmarrs
Jul 09, 2007 11:31 AM|crsang|LINK
I have a form which collects information and has a button on it. I want the page to check the data and perform some actions on that data. During the actions I want the page to call a new window which either confirms the information was collected and processed
or explains an error has occurred.
So far the only information I have found was to add a window.open call to a button but I dont want the window to open first, I would like the actions to take place and then the window to open.
Is there a peice of code that will call the popup at a certain place in the code rather than only on a button click action?
Thanks in advance.
CODE: ASP.net 1.1; VB
Jul 09, 2007 01:17 PM|rmarrs|LINK
Jul 09, 2007 01:22 PM|crsang|LINK
is it possible to put a call to something to run it at a certain line in my code. for example
1) Check if fields are complete
2) Check is data is good
3) Popup dialog window
I want the user to start the chain of events but not actually cause the window to popup. I want that to happen a bit later in the code. Does that make sense?
Thanks again in advance!
Jul 09, 2007 01:57 PM|rmarrs|LINK
if you're using an Ajax implementation you could pop up a window from the code behind. The Ajax toolkit provides a nice modal window for popping up, or the Anthem.NET control set, you can do a page.RegisterScriptForClientSidePostback(); in your codebehind
to popup the window. What you need to decide is when you should fire the validation. That list of events I gave you shows you when you have the option of firing them, you just need to pick one. Or you can use a timer control that tries to validate every
10 seconds or so.