FreeTextBox problem with validate request

S

Smokey Grindle

to start off with the page the free text box (version 3) is on has
validateRequest="false" in the page directive already...

but even with that when I am in the page and then click on a link to another
page (as long as its changing pages, not posting back) it says this

System.Web.HttpException was unhandled by user code
ErrorCode=-2147467259
Message="Error executing child request for /msg/Secure/Default.aspx."
Source="System.Web"
StackTrace:
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler,
TextWriter writer, Boolean preserveForm, Boolean setPreviousPage,
VirtualPath path, VirtualPath filePath, String physPath, Exception error,
String queryStringOverride)
at System.Web.HttpServerUtility.Execute(String path, TextWriter
writer, Boolean preserveForm)
at System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm)
at System.Web.HttpServerUtility.Transfer(String path)
at Controls_FoldersBar.TreeView1_SelectedNodeChanged(Object sender,
EventArgs e) in C:\dev\msg\Controls\FoldersBar.ascx.vb:line 47
at System.Web.UI.WebControls.TreeView.OnSelectedNodeChanged(EventArgs
e)
at System.Web.UI.WebControls.TreeView.RaisePostBackEvent(String
eventArgument)
at
System.Web.UI.WebControls.TreeView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection
postData)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Which has an inner exception of

{"A potentially dangerous Request.Form value was detected from the client
(ctl00_ContentPlaceHolder1_ftbContent="<DIV class=MessageIn...")."}
at System.Web.HttpRequest.ValidateString(String s, String valueName,
String collectionName)
at System.Web.HttpRequest.ValidateNameValueCollection(NameValueCollection
nvc, String collectionName)
at System.Web.HttpRequest.get_Form()
at System.Web.HttpRequest.get_Item(String key)
at System.Web.UI.Page.get_LastFocusedControl()
at System.Web.UI.Page.BeginFormRender(HtmlTextWriter writer, String
formUniqueID)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter
writer)
at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter
writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.Control.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,
ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer,
ControlAdapter adapter)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.secure_default_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler,
TextWriter writer, Boolean preserveForm, Boolean setPreviousPage,
VirtualPath path, VirtualPath filePath, String physPath, Exception error,
String queryStringOverride)

why in the world would switching pages cause this exception to be thrown on
a page that does not have any html data on it from the text box? this only
ever happens when you switch pages from the one with the freetext box to
another without one, never when its posted back to itself..
 
S

Smokey Grindle

some more information...

this only happens on postback events that come from user controls in the
same page... its like its ignoreing the validaterequest="false" when i do
that... i have a tree control in a user control which then is on the same
form as the freetextbox... when the treeview does the postback and only then
is the validate exception thrown... how do i fix this? thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top