WorldofASP.NET : ASP.NET Directory, Tutorial, Hosting, and Source Code
You are 1 of 206 users


ASP.NET - Render Hidden Fields at the Top of a Form with .NET 3.5 SP1

Blogger : Dan Wahlins WebLog
All posts : All posts by Dan Wahlins WebLog
Category : ASP.NET
Blogged date : 2008 Jul 22

I just came across a nice feature in ASP.NET 3.5 SP1 (currently in Beta) that I didn’t realize was included.  It’s always nice to discover hidden gems from time to time.  With ASP.NET 1.0, 1.1, 2.0 and 3.5 applications if a user or JavaScript function tried to do a postback before all of the ViewState and EventValidation data was loaded in the browser, a ViewState MAC validation error could be raised by the server.

In ASP.NET 3.5 SP1 Microsoft provides a new attribute on the <pages> element in web.config that now allows all hidden fields to be rendered at the top of a form rather than at the bottom which can help to avoid the ViewState MAC validation error when people perform a postback operation before the page has finished loading.  The attribute is named renderAllHiddenFieldsAtTopOfForm (which does what it says) and defaults to a value of true.  .NET 3.5 SP1 is currently in beta but once it’s officially released the new attribute is definitely a nice enhancement to the ASP.NET framework.

 

 

Need to display OrgCharts, site maps or other hierarchies in your ASP.NET applications?  Check out SmartChartPro.


Read comments or post a reply to : ASP.NET - Render Hidden Fields at the Top of a Form with .NET 3.5 SP1
Page 406 of 1924
Next | Last

.NET News Categories








Legend : - Within 3 Days - Within 6 Days - Within 9 Days

Home | Add Resources | Sponsored Listings | Advertise with Us | SiteMap 1 | SiteMap 2 | Link To Us | Contact Us
© 2002-2008 Worldofasp.net ASP.NET Directory, Hosting and Tutorials | All rights reserved
Our Partners : ASP.NET Web Hosting | Windows Web Hosting | ASP.NET Hosting | Phone Card | PHP Directory | Bangkok Hotels |Calling Card