Changing properties as an event response.

Discussion in 'ASP .Net Building Controls' started by Peter, Jan 22, 2005.

  1. Peter

    Peter Guest

    Hi all...
    This is the situation:
    A page with a button and a custom control.
    The custom control sends an event.
    The page is notified and then turns the button.Enabled property to
    false.
    All of this is done before the Page Render event; but when it's going
    to be rendered the Enabled property hasn't really changed and it
    stills been true.
    So anyone knows where this property is stored and how can i access it
    in this situation ?

    Thanks in advance..
    Peter, Jan 22, 2005
    #1
    1. Advertising

  2. Peter

    Teemu Keiski Guest

    Hi,

    How do you mean it has not been changed? Are you mixing it up with Visible
    property whioch controls if control is rendered at all? If Button is
    disabled it should be grayed out. If this doesn't happen how and where is
    the button declared on the page, is it perhaps a dynamical control?

    --
    Teemu Keiski
    ASP.NET MVP, Finland


    "Peter" <> wrote in message
    news:...
    > Hi all...
    > This is the situation:
    > A page with a button and a custom control.
    > The custom control sends an event.
    > The page is notified and then turns the button.Enabled property to
    > false.
    > All of this is done before the Page Render event; but when it's going
    > to be rendered the Enabled property hasn't really changed and it
    > stills been true.
    > So anyone knows where this property is stored and how can i access it
    > in this situation ?
    >
    > Thanks in advance..
    Teemu Keiski, Jan 27, 2005
    #2
    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. Nathan Sokalski
    Replies:
    0
    Views:
    903
    Nathan Sokalski
    Oct 17, 2005
  2. =?Utf-8?B?Q2hyaXN0b3BoZSBQZWlsbGV0?=

    CompositeControls: ViewState properties w/ Mapped properties probl

    =?Utf-8?B?Q2hyaXN0b3BoZSBQZWlsbGV0?=, Jan 19, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,137
    Steven Cheng[MSFT]
    Jan 19, 2006
  3. Kent Lichty
    Replies:
    0
    Views:
    831
    Kent Lichty
    Apr 16, 2004
  4. Victor Porton
    Replies:
    1
    Views:
    695
    Steven T. Hatton
    Aug 29, 2004
  5. Replies:
    0
    Views:
    142
Loading...

Share This Page