Notify alert message while navigating to other page

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Dec 2007
Posts: 34
Reputation: vizy is an unknown quantity at this point 
Solved Threads: 6
vizy's Avatar
vizy vizy is offline Offline
Light Poster

Notify alert message while navigating to other page

 
0
  #1
Jun 23rd, 2009
Hi Friends,

I have a web Application created, there is an option to Add/Edit the forms.
My requirement is something like...
When a user opens any record for editing, the details are displayed(binded) in texboxes,dropdowns,radiobuttons.. etc
Here if the user modifies any data and clicks on any other link(within the same page) to move onto some other page without saving... promt him saying "You have modified the data, Do you wish to continue without saving Yes/No".

Any help is greatly appreciated...

Thanks
Njoy koding... >>>
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 185
Reputation: aashishn86 is an unknown quantity at this point 
Solved Threads: 9
aashishn86's Avatar
aashishn86 aashishn86 is offline Offline
Junior Poster

Re: Notify alert message while navigating to other page

 
0
  #2
Jun 23rd, 2009
well, you can use a flag..
set the flag to one on click of "submit button" and otherwise let it be zero....

and onclick of each link call a function check()
which see's if the flag is 0 gives an alert otherwise
opens the link...
rEaLITy iS aN iLLUSIOn cAUSED bY lACk oF aLCOHOL....
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 185
Reputation: aashishn86 is an unknown quantity at this point 
Solved Threads: 9
aashishn86's Avatar
aashishn86 aashishn86 is offline Offline
Junior Poster

Re: Notify alert message while navigating to other page

 
0
  #3
Jun 23rd, 2009
use can also compare the values in the databases and the current values in the textboxes and listboxes and see if the have changed !
rEaLITy iS aN iLLUSIOn cAUSED bY lACk oF aLCOHOL....
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 34
Reputation: vizy is an unknown quantity at this point 
Solved Threads: 6
vizy's Avatar
vizy vizy is offline Offline
Light Poster

Re: Notify alert message while navigating to other page

 
0
  #4
Jun 23rd, 2009
thanks ashish for your post

I want to alert the user only if he modified some of the data(may be a character) and trying to move on other links.. otherwise let him go if no changes made... and by comparing the data from DB will take too long time to process...
Njoy koding... >>>
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,639
Reputation: adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of adatapost has much to be proud of 
Solved Threads: 472
Moderator
adatapost's Avatar
adatapost adatapost is offline Offline
Posting Maven

Re: Notify alert message while navigating to other page

 
0
  #5
Jun 23rd, 2009
Did you work out on that issue? Post your code.
Failure is not fatal, but failure to change might be. - John Wooden
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 220
Reputation: mail2saion is an unknown quantity at this point 
Solved Threads: 33
mail2saion's Avatar
mail2saion mail2saion is offline Offline
Posting Whiz in Training

Re: Notify alert message while navigating to other page

 
0
  #6
Jun 24th, 2009
Hi vizy its not an easy job. Scott Mitchell has written a post on this issue which is not 100% efficient but you can start & need to fix to accomodate your requirements.

http://www.4guysfromrolla.com/webtech/100604-1.shtml
MARK AS SOLVED if its help you.

REGARDS
MCTS - Shawpnendu bikash maloroy
http://shawpnendu.blogspot.com
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 34
Reputation: vizy is an unknown quantity at this point 
Solved Threads: 6
vizy's Avatar
vizy vizy is offline Offline
Light Poster

Re: Notify alert message while navigating to other page

 
0
  #7
Jun 24th, 2009
Thank you friends form your replies...
hey mail2saion.. your link really helps..
I got the solution
Njoy koding... >>>
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC