Welcome to ASPInsiders Sign in | Join | Help

Testing

Testing the blog, and no one sees this yet but, but at the same...I'd like to remind about TextBox.ReadOnly on ASP.NET v2.0 (replied a few times about that on newsgroups...).

If TextBox's ReadOnly property is "true", postback data won't be loaded e.g it essentially means TextBox being readonly from server-side standpoint (client-side changes will be ignored). If you want TB to be readonly in the "old manner" use TextBox1.Attributes.Add("readonly","readonly") as that won't affect server-side functionality.

This is documentted here:
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.textbox.readonly.aspx

And someone pointed that out as bug a while ago:
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=60bb1325-9dc3-48e9-a32f-e211ea345862

Even though it's not even about EnableViewState but only about server-side ReadOnly property affecting postback data loading...

Hey, this seems to work  I could switch my blog over here :-)

 

 

posted by joteke | 0 Comments