Click here to Skip to main content
15,919,341 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hii , I want to add functionality on my each page , such as .. if user try to navigate to diifferent poage without saiving data on current page .. i want to display a model popup containing same fields of that page's data ... how can i achive data .. model popup can have again save button .. and cancel button .. if he click on save the page gets saved and then navigates navigate to other page he was looking for , if he press cancel user directly navigate to other page ...
Posted

1 solution

Hi,

How you are validating the controls.If you are using the js then inside the function just call the modalpopup.show() method when the validation fails .This will show the user modal pop up.

For cancel and Save

If user clicks on save just initiate the same navigate event(say if user try to navigate by clicking on button1_click , call that event) or create a seperate event for save and copy paste the content , don't give the button ID as OkControl or cancelControl.

For cancel Button just assign that as OkControl or cancelControl . It will automatically close the pop up and user remains in the same page.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900