Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Feb 20, 2012 07:58 AM by ignatandrei
Member
593 Points
244 Posts
Feb 20, 2012 06:20 AM|LINK
Hie Team.
Whenever i am trying for Saving My Records its saved successfully but as soon as i reload the page it second time save the data into my table
How to solve this issue in MVC .?
329 Points
261 Posts
Feb 20, 2012 06:26 AM|LINK
It seems that you may call it twice. Check your call stack to see where it is calling save for 2nd time
All-Star
135174 Points
21682 Posts
Moderator
MVP
Feb 20, 2012 07:58 AM|LINK
at the final of action put
return RedirectToAction(" does not matter what action is ok for the user to see after saving");
http://en.wikipedia.org/wiki/Post/Redirect/Get
dLcreations
Member
593 Points
244 Posts
Data Saved Sacond Time after Page Refresh
Feb 20, 2012 06:20 AM|LINK
Hie Team.
Whenever i am trying for Saving My Records its saved successfully but as soon as i reload the page it second time save the data into my table
How to solve this issue in MVC .?
pantonis
Member
329 Points
261 Posts
Re: Data Saved Sacond Time after Page Refresh
Feb 20, 2012 06:26 AM|LINK
It seems that you may call it twice. Check your call stack to see where it is calling save for 2nd time
Please mark this post as answer if it helped you solve your problem
ignatandrei
All-Star
135174 Points
21682 Posts
Moderator
MVP
Re: Data Saved Sacond Time after Page Refresh
Feb 20, 2012 07:58 AM|LINK
at the final of action put
return RedirectToAction(" does not matter what action is ok for the user to see after saving");
http://en.wikipedia.org/wiki/Post/Redirect/Get