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

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

    How to use new ASP.NET2 Tree Control?

    Siegfried Heintze, Nov 3, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    1,353
    Bruce Barker
    Nov 4, 2005
  2. D. Shane Fowlkes

    Cannot load Class?? .NET2

    D. Shane Fowlkes, Feb 8, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    1,221
    D. Shane Fowlkes
    Feb 8, 2006
  3. ShaneFowlkes
    Replies:
    9
    Views:
    9,789
    ShaneFowlkes
    Apr 12, 2006
  4. Andrew Felch

    Props to numpy programmers!

    Andrew Felch, Nov 20, 2003, in forum: Python
    Replies:
    1
    Views:
    883
    Duncan Smith
    Nov 20, 2003
  5. Jeremy
    Replies:
    2
    Views:
    478
    Jeremy
    Nov 27, 2007
  6. Replies:
    0
    Views:
    844
  7. Jonathan Hyatt
    Replies:
    1
    Views:
    2,976
    Jonathan Hyatt
    Jun 8, 2004
  8. Phlip
    Replies:
    0
    Views:
    225
    Phlip
    Mar 24, 2009
Loading...