August 1st, 2007, 12:19 PM
Hello, I have two questions:
One) I'm using the MaskedEditExtenders from the Ajax Control Toolkit to help validate some input. The masks work well for when typing input, but when the ASP:Button wants to start doing some work with the input, any validation messages that were displayed are removed. I'm still checking for valid and complete input on the server side, but I'd rather have the AJAX validation messages remain. Any suggestions?
Update: the application eventlog says:
Exception type: HttpRequestValidationException
Exception message: A potentially dangerous Request.Form value was detected from the client (ctl00$MainPlaceHolder$reportField="<HTML><HEAD><TITLE>E...")."
Which is the name of the hidden field and the hidden field should contain that HTML.
Last edited by KBTibbs; August 1st, 2007 at 01:11 PM.
August 1st, 2007, 01:20 PM
Re: AJAX oddities...
Ah... Figured # 2 out. ASP.Net is trying to protect me from myself (and injection exploits).
To fix, I added <%@ Page validateRequest="false" %>.
# 1 is still confusing me though...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.