| | |
CustomValidate, another problem
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Aug 2006
Posts: 2
Reputation:
Solved Threads: 0
I use CustomValidate to check för "<" in the beginning of text entered into few text boxes. It goes just fine, as long as the user deletes the potentially dangerous sign and updates the page. But if the user choses to break the update and instead press Exit button, the unpleasant error page is shown, [HttpRequestValidationException (0x80004005). The error message states that a “potentially dangerous Request.Form value was detected…” I don't want to rewrite the validation, as date and e-mail validators are really good. Is there any way to avoid the error page showing up? I did put CausesValidation="False" on my Exit button but in this case it does not help. Help is needed quickly, I haven't much time, so if anyone knows a remedy, answer PLEASE!
its not the button you would turn validation off . its on the textbox.
or you can put ValidateRequest="false" also at the top of your page, to turn off validation on everything
or you can put ValidateRequest="false" also at the top of your page, to turn off validation on everything
•
•
•
•
I use CustomValidate to check för "<" in the beginning of text entered into few text boxes. It goes just fine, as long as the user deletes the potentially dangerous sign and updates the page. But if the user choses to break the update and instead press Exit button, the unpleasant error page is shown, [HttpRequestValidationException (0x80004005). The error message states that a “potentially dangerous Request.Form value was detected…” I don't want to rewrite the validation, as date and e-mail validators are really good. Is there any way to avoid the error page showing up? I did put CausesValidation="False" on my Exit button but in this case it does not help. Help is needed quickly, I haven't much time, so if anyone knows a remedy, answer PLEASE!
•
•
Join Date: Aug 2006
Posts: 2
Reputation:
Solved Threads: 0
I didn't know it's possible to turn of a validation on a user control when there is validation on other controls. I'll check it right away., thank You for the tip. Don't want to turn it off for the whole page, as it wouldn't check the other field. Anyway, I resolved it by stopping the user from keying "<" into the textboxes.
![]() |
Similar Threads
- Problem with Windows Update and WinXP (Web Browsers)
- Installing Windows 98 On VMware. Floppy problem (Windows 95 / 98 / Me)
- Windows XP keeps restarting since a new video card (Windows NT / 2000 / XP)
- Redhat Linux 6.2 - ipop3d problem? (*nix Software)
- Problem with T720 (Cellphones, PDAs and Handheld Devices)
- Connection Problems (Networking Hardware Configuration)
- .htaccess mod_rewrite problem (Linux Servers and Apache)
Other Threads in the ASP.NET Forum
- Previous Thread: Fatal Execution Engine Failure(0x7927e03e)
- Next Thread: Difference b/w ASP and ASP.Net
| Thread Tools | Search this Thread |
.net 2.0 3.5 activexcontrol advice ajax asp asp.net bc30451 beginner bottomasp.net browser businesslogiclayer button c# c#gridviewcolumn cac checkbox child class click commonfunctions compatible confirmationcodegeneration content contenttype control countryselector courier css database datagrid datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownmenu dynamic edit embeddingactivexcontrol expose feedback findcontrol flash flv formatdecimal forms formview gridview homeedition iframe iis javascript jquery list menu mono mssql multistepregistration nameisnotdeclared novell objects order problem ratings rotatepage save search security serializesmo.table silverlight smartcard sql sqlserver2005 ssl suse textbox tracking treeview typeof unauthorized validation vb.net video virtualdirectory vista visual-studio visualstudio vs2008 web webarchitecture webdevelopemnt webdevelopment wizard xml youareanotmemberofthedebuggerusers





