By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,949 Members | 2,043 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,949 IT Pros & Developers. It's quick & easy.

Formview Control - Identifying if a change has been made

P: n/a
I need to be able to determine if a user has actually made a change
when on either the edititem or insertitem templates of a formview
control.

Is there a standard way of handling this to prevent the user from
moving off the page.

I haven't seen this topic mentioned in any books I've looked at but it
must be something that everybody has to tackle in a production system.

Feb 16 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
this can only be done with client script. catch the page unload event. the
unload fires whenever the a new page is loaded, even the postback for the
page, so you will need some logic added in the postback routine to notify
the unload routine, that it does not need to do any checks.

-- bruce (sqlwork.com)

"Neil" <ne*********@synapse-partnership.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com...
I need to be able to determine if a user has actually made a change
when on either the edititem or insertitem templates of a formview
control.

Is there a standard way of handling this to prevent the user from
moving off the page.

I haven't seen this topic mentioned in any books I've looked at but it
must be something that everybody has to tackle in a production system.

Feb 16 '06 #2

P: n/a
Thanks Bruce

I have a menu on a master page and my formview is on a content page.

If the user selects a different page off the menu the unload event
wouldn't be fired on the original page would it as it isn't being
posted back at that stage?

I have to admit to being rather confused about this area. It was
something that I didn't really need to think about in VB.

Do you have a reference to some sample code you can point me to so i
can get my head round this?

Feb 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.