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

Discussion in 'ASP .Net' started by Groove, Apr 10, 2006.

  1. Groove

    Groove Guest

    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?
    Groove, Apr 10, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ShaneFowlkes
    Replies:
    9
    Views:
    9,479
    ShaneFowlkes
    Apr 12, 2006
  2. Andrew Felch

    Props to numpy programmers!

    Andrew Felch, Nov 20, 2003, in forum: Python
    Replies:
    1
    Views:
    764
    Duncan Smith
    Nov 20, 2003
  3. Jeremy
    Replies:
    2
    Views:
    335
    Jeremy
    Nov 27, 2007
  4. Replies:
    0
    Views:
    668
  5. Jonathan Hyatt
    Replies:
    1
    Views:
    1,869
    Jonathan Hyatt
    Jun 8, 2004
Loading...

Share This Page