Message Boxs ?
I am a new ASP user working on a university project. The design plan calls for the use of message boxs to confirm deletions from the DB. I have seen client side message boxs, but the design plan calls for server side pop ups using ASP. Can anyone show me how this is done.
Well that depends.
You can write the code server side or client side but ultimately the output is ALL client side.
I would do something like:
put this in your <head>:
And then you can use it this way:
if(confirm("are you sure you want to delete this record?"))
This is the exact code we use, and it works relatively well. Essentially if the client says "delete" they are prompted about whether they are sure. If they say yes, it goes to the removetransact.asp page and removes the record.
Is this what you want?
I think that will do the job.