Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
in mvc 4.0 razor application.

i have 2 buttons, one for saving data and second one for cancel the page.
now i click on cancel button page can be redirect to another page. but it shows error validation on that page.
Posted
Updated 1-Feb-19 22:36pm
Comments
Sergey Alexandrovich Kryukov 8-May-13 2:17am    
This is a pretty weird idea, to assume that MVC has its own buttons... :-)
OK, there are too many ways to screw up things. You did not share with us which way did you use...
—SA
Jameel VM 8-May-13 2:29am    
you must remove the validations when clicking the cancel button

1 solution

C#
char[] charsToTrim = { '*', ' ', '\'' };s
 
Share this answer
 
Comments
Dave Kreskowiak 2-Feb-19 10:20am    
What on earth does this unexplained code snippet have to do with this question that was asked six years ago?

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