Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Save Edit Table on Exit

Reply
Thread Tools

Save Edit Table on Exit

 
 
Stephen Lynch
Guest
Posts: n/a
 
      09-05-2006
What is the best way to insure that an edit table fields are saved on an
exit.

For example, I have an edit panel on a page. I do not want to post back on
every field, but if an end user goes to another page I want the save button
clicked so that the records are saved to the backend database.

Thanks

Steve


 
Reply With Quote
 
 
 
 
Laurent Bugnion
Guest
Posts: n/a
 
      09-05-2006
Hi,

Stephen Lynch wrote:
> What is the best way to insure that an edit table fields are saved on an
> exit.
>
> For example, I have an edit panel on a page. I do not want to post back on
> every field, but if an end user goes to another page I want the save button
> clicked so that the records are saved to the backend database.
>
> Thanks
>
> Steve


Unfortunately, there is no 100% reliable way. The onunload event in the
body tag can be used for this, but you cannot be 100% sure that the
action will be executed when the user closes the browser, for example.

If it is vital to save the data to the server, then I recommend using
AJAX to send the field's content to the server on a regular basis, for
example every time that a key is pressed. If it is not vital, then you
must design your application keeping that limitation in mind.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
prompt to save on exit - disable prompt on save button Mel ASP .Net 10 02-13-2009 05:32 AM
Exit code of a batch (using exit /B) Joe Smith Java 4 11-08-2006 12:25 PM
Code to Exit Web App and Exit Internet Explorer =?Utf-8?B?U2FuZHk=?= ASP .Net 7 08-05-2005 01:55 AM
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM



Advertisments