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...