NEWBIE: check if page has been changed
am 07.01.2005 00:33:22 von Marco Krechting
Hi All,
I have a rather strange question but maybe one of you guys can answer.
I have a ASP page with a recordset showing records from my database.
Every record has some checkboxes attached to it.
What I want to have is a check if the user clicked or unclicked some of
these checkboxes when he goes to another page without clicking the Update
Database button.
In other words when the user made changes to the database these will be lost
when he goes to another page without updating the database. That i want to
prevent.
Regards
Marco
The Netherlands
Re: NEWBIE: check if page has been changed
am 07.01.2005 04:40:18 von jeff.nospam
On Fri, 7 Jan 2005 00:33:22 +0100, "Marco Krechting"
wrote:
>Hi All,
>
>I have a rather strange question but maybe one of you guys can answer.
>I have a ASP page with a recordset showing records from my database.
>Every record has some checkboxes attached to it.
>
>What I want to have is a check if the user clicked or unclicked some of
>these checkboxes when he goes to another page without clicking the Update
>Database button.
>
>In other words when the user made changes to the database these will be lost
>when he goes to another page without updating the database. That i want to
>prevent.
You can't do it in ASP, since the checking happens client side and if
not submitted it never goes to the server to check. You might be able
to use Javascript for part of it, but a user can always type in a URL
and the browser will obey them, not you.
Maybe reverse this, give them a confirmation that their changes have
been accepted, if they don't see that then they didn't get a valid
update. Actually, you should do this no matter what.
Jeff