Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...EnableEventValidationEnableEventValidation
Previous
 
Next
New Post
8/16/2011 10:47 AM
 
Hi All,

I have a site with a page called Gallery and there is a DNN photogallery module on the page. With the version 6.0 upgrade I get event validation errors when trying to open any of the galleries in the module (they display fine initially). Although I've written support requests to the module provider, there has yet to be any response.

I would like to disable event validation for that page only and maintain it for the majority of the website, which works fine. I tried to insert <@ Page EnableEventValidation="false" %> in the Page Header Tags section of page settings. Apparently it is an invalid location as it is commented out in the page source view and the module still generates the error.

Thanks in advance to anyone that can decrease my ignorance!

Regards,
Jim Shedden
 
New Post
8/17/2011 2:08 AM
 
you cannot do what youre suggesting as it's a server tag, not a html tag-also the page already contains one. There is no easy way to disable event validation for just that page as all dotnetnuke actions operate via the same default.aspx page (btw the details and reason for eventvalidation can be read at http://www.dotnetnuke.com/Resources/Blogs/EntryId/3104/Security-bulletins-released.aspx ). It is possible to add code to disable at a particular page e.g. via a httphandler or module, but you would have to write that yourself.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/18/2011 7:25 PM
 
Hi Cathal, I have been having the same problem, trying to handle a postback on a gridView in a custom module.

I added the following code:

protected override void Render(HtmlTextWriter writer)
{
foreach (GridViewRow r in gvNotes.Rows)
{
if (r.RowType == DataControlRowType.DataRow)
{
Page.ClientScript.RegisterForEventValidation(r.UniqueID);
}
}
base.Render(writer);
}

but I still get the error.

Can you explain how I can circumvent the validation issue on my GridView?

Thanks!
 
New Post
10/19/2011 12:50 PM
 
you do not typically need to register server controls for event validation - it's mostly used when you're using some html (e.g. an INPUT button) to execute server-side code - so i think your request here may not be necessary - unless yyou're trying to wire up some sort of click event on a table row (e.g. TR)?

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/19/2011 6:03 PM
 
Sorry Cathal, I should have specified.

In my html I am hoping to make an entire row of a gridview clickable by placing a:

""

...in my column field in the gridview. It is working fine with "enableEventValidation="false"" in the web.config.

If there is a way to turn off validation on the specific page, that would save me a lot of headaches! You mentioned it was possible in an earlier post via an httphandler or some such thing?
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...EnableEventValidationEnableEventValidation


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out