Cannot read a control's props if readonly?! New change in NET2?

G

Groove

I've noticed something that's come up twice today alone. In ASP.NET 1, I
could reference and use a control's property if the control was set to
readonly or if it was set to visible = false. Such a asp:TextBox or a
asp:HiddenField. I've noticed that I can no
longer do this in .NET2 (VB). I can't find this documented but can someone
confirm this? If so....why the change??

For example, I'm setting a "date" textbox on a page that is set to
readonly=true. The text of this textbox is set by a calendar control. In
ASP.NET1, I could reference the Text property in a sub even if it was
readonly. In ASP.NET2, I cannot. I'm having to set the readonly to
false....which defeats the pupose the use of the calendar control.

Need a sample?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top