Server-Side Message Box?????
Calling all Propeller Heads!
I've written a ASP page that has a number of Command Buttons that when clicked fire off code in a SELECT CASE ... END SELECT construct. (I love the word construct) Anyway one of the cases calls a subroutine that connection to a table in an Access database and adds a new record.
What I would like to do is give the user the opportunity to cancel the Add Record. I know I could create a new page, make the first page direct the user to this new page, ask for confirmation of the add, add the record, redirect back to the first page. Yadda Yadda Yadda.
Is there a some way of getting server-side scripting to produce the equivalent to the client-side message box? The page is one our Intranet and will only ever be viewed with IE.
Thanks
Paul Curtis
Mark Hensler posted this at 06:48 — 21st November 2001.
He has: 4,048 posts
Joined: Aug 2000
just print the JS with the button..
<input type="submit" value="Add" onClick="return confirm('You are about to add a record.\nContinue?');">
Mark Hensler
If there is no answer on Google, then there is no question.
PaulCAust posted this at 23:31 — 21st November 2001.
They have: 25 posts
Joined: Aug 2001
Mark,
Thanks for that! Just one more reason why I should go back to that JavaScript book that I bought 18 months ago and never read past page 17.
Paul
Mark Hensler posted this at 08:46 — 22nd November 2001.
He has: 4,048 posts
Joined: Aug 2000
we all do that
I have an ASP book that I stopped reading after I lost my only access to a windows server. I figured if I can't use/preactice ASP, why read on.
I have a JS book that is really horable. I can't really use it for a desk reference either. So instead, I'm getting real acquainted with google.
Mark Hensler
If there is no answer on Google, then there is no question.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.