ASP.NET 2.0 ReadOnly behavior change when EnableViewState is false

Posted by: Rick Strahls WebLog, on 20 Dec 2005 | View original | NEW Bookmarked: 0 time(s)

Here’s a behavior difference between ASP.NET 1.1 and 2.0: If you have a control on a page that is marked Read-Only and EnableViewState is set to false on the Page, the ReadOnly value will no longer post back in ASP.NET 2.0 - the value gets lost. This even though the value is actually returned in the POST buffer. I do this a bunch in some of my applications where there are generated IDs that display on a form, but they are readonly. The value displays and is supposed to be part of the postback...

Advertisement
Category: Data | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 2062 | Hits: 125

Similar Posts

  • ASP.NET MVC: DevExpress Mail Demo more
  • ASP.NET Membership Tip: Requiring New Users To Change Their Password When Logging On For The First Time more
  • Bind InfoPath form to XML, Tables, SharePoint Lists & Web Services more
  • Export Word documents to XPS - Open XML Paper Specification format more
  • Rock The Vote! Choose DevExpress for 2009 Readers' Choice Awards more
  • Create or Manage XPDL 1.0 & 2.1 packages using Aspose.Workflow more
  • Application Identifiers (AI) for EAN-128 barcode generation more
  • Create charts & add ad hoc capabilities to .NET Web & WinForm apps more
  • PDF Linearization (Optimization), Faster display of PDF documents more
  • Whats new in Aspose.Total for .NET Q1 2009? more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD