Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Validation in asp.net
New Posts  All Forums:Forum Nav:

Validation in asp.net

post #1 of 2
Thread Starter 
Currently I have a form filled with different validators. I have a continue or cancel button. Continue takes me to the next page and cancel redirect me back to the home page. On the continue link button behind code. I make it enable all validators and page.validate() is called when continue is clicked. On the cancel link button behind code, I simply have the response,redirect() method. The problem is once I clicked the continue link button, the validation starts and it won't let me click on the cancel button until I have fulfill the validation. How do I solve this? Thanks!
    
CPUGraphicsRAMHard Drive
Intel Core i7 4870HQ 2.5GHz AMD Radeon R9 M370X 2048 MB 16 GB 1600 MHz DDR3 1TB SSD 
OS
macOS Sierra 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
Intel Core i7 4870HQ 2.5GHz AMD Radeon R9 M370X 2048 MB 16 GB 1600 MHz DDR3 1TB SSD 
OS
macOS Sierra 
  hide details  
Reply
post #2 of 2
Thread Starter 
Nvm, set causesvalidation to false for the cancel link button under properties. Didn't realize I had it on. lol!
    
CPUGraphicsRAMHard Drive
Intel Core i7 4870HQ 2.5GHz AMD Radeon R9 M370X 2048 MB 16 GB 1600 MHz DDR3 1TB SSD 
OS
macOS Sierra 
  hide details  
Reply
    
CPUGraphicsRAMHard Drive
Intel Core i7 4870HQ 2.5GHz AMD Radeon R9 M370X 2048 MB 16 GB 1600 MHz DDR3 1TB SSD 
OS
macOS Sierra 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Web Coding
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Web Coding › Validation in asp.net