How access the PreInit Page event to change theme at runtime?

Discussion in 'ASP .Net Web Controls' started by nail, Oct 4, 2004.

  1. nail

    nail Guest

    Hi.
    Anyone knows how can I change the theme from my custom control.
    My custom control render a dropdownlist with the availables themes, getting
    in the Themes folder.
    But when I try to chane the Page.Theme property, I get this error:

    The 'Theme' property can only be set in or before the Page_PreInit event

    So, how can I set the Theme in or befor the Page_PreInit?

    Thanks.
     
    nail, Oct 4, 2004
    #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. nail
    Replies:
    7
    Views:
    5,831
    j.selvakumar
    Jun 27, 2007
  2. Marcelo Cabrera

    PreInit event in usercontrol

    Marcelo Cabrera, Dec 22, 2005, in forum: ASP .Net
    Replies:
    9
    Views:
    7,313
    =?Utf-8?B?TWFyY2VsbyBDYWJyZXJh?=
    Jan 19, 2006
  3. shapper

    PreInit event and Master Page

    shapper, Sep 23, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    3,354
    Mark Rae
    Sep 23, 2006
  4. Replies:
    1
    Views:
    7,033
    Mark Rae
    Sep 28, 2006
  5. Rahul
    Replies:
    6
    Views:
    567
    Rahul
    Feb 8, 2007
Loading...

Share This Page