By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,793 Members | 1,257 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,793 IT Pros & Developers. It's quick & easy.

FreeTextBox problem with validate request

P: n/a
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(IHttp Handler 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.OnSelectedNodeC hanged(EventArgs
e)
at System.Web.UI.WebControls.TreeView.RaisePostBackEv ent(String
eventArgument)
at
System.Web.UI.WebControls.TreeView.System.Web.UI.I PostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection
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(HtmlTex tWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(HtmlT extWriter writer,
ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
at System.Web.UI.Control.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(HtmlT extWriter writer,
ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(Http Context context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.secure_default_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpServerUtility.ExecuteInternal(IHttp Handler 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..

Jun 28 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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!
"Smokey Grindle" <no********@dontspam.net> wrote in message
news:en**************@TK2MSFTNGP04.phx.gbl...
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(IHttp Handler
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.OnSelectedNodeC hanged(EventArgs e)
at System.Web.UI.WebControls.TreeView.RaisePostBackEv ent(String
eventArgument)
at
System.Web.UI.WebControls.TreeView.System.Web.UI.I PostBackEventHandler.RaisePostBackEvent(String
eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection
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(HtmlTex tWriter output)
at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(HtmlT extWriter writer,
ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
at System.Web.UI.Control.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(HtmlT extWriter writer,
ICollection children)
at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
at System.Web.UI.Page.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(Http Context context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.secure_default_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpServerUtility.ExecuteInternal(IHttp Handler 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..

Jun 28 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.