Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / February 2006

Tip: Looking for answers? Try searching our database.

Formview Control - Identifying if a change has been made

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neil - 16 Feb 2006 16:35 GMT
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.
Bruce Barker - 16 Feb 2006 17:16 GMT
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)

>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
[quoted text clipped - 5 lines]
> 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.
Neil - 16 Feb 2006 17:30 GMT
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?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.