Page.LoadControl and CSS

Discussion in 'ASP .Net' started by Ben Fidge, Jun 26, 2004.

  1. Ben Fidge

    Ben Fidge Guest

    I've got a page that dynamically loads web UserControls at run-time. The
    problem is that CSS styles applied to the UserControl's controls and page
    elements aren't being applied.

    Any ideas?

    Thanks

    Ben
     
    Ben Fidge, Jun 26, 2004
    #1
    1. Advertising

  2. Hi Ben,

    Apply CSS file in Page that contains UserControl, and apply CSS classes in
    UserCOntrol but don't link your usercontrol with CSS file. so only Container
    page will have linked to CSS and Usercontrol will inherit CSS file from the
    container page.

    Revert back if not getting.

    Harsh

    "Ben Fidge" <> wrote in message
    news:...
    > I've got a page that dynamically loads web UserControls at run-time. The
    > problem is that CSS styles applied to the UserControl's controls and page
    > elements aren't being applied.
    >
    > Any ideas?
    >
    > Thanks
    >
    > Ben
    >
    >
     
    Harshdeep Mehta, Aug 11, 2004
    #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. Leszek Taratuta

    Page.LoadControl, Page_Load, and SelectedValue

    Leszek Taratuta, Dec 6, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    494
    Leszek Taratuta
    Dec 6, 2004
  2. alecyy

    why Page.LoadControl?

    alecyy, Apr 14, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    9,389
    alecyy
    Apr 15, 2005
  3. =?Utf-8?B?Sm9l?=
    Replies:
    1
    Views:
    3,899
    =?Utf-8?B?Sm9l?=
    Dec 27, 2005
  4. =?Utf-8?B?U2VraGFy?=

    Page.LoadControl

    =?Utf-8?B?U2VraGFy?=, Apr 17, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    2,204
    =?Utf-8?B?V296emE=?=
    Apr 17, 2006
  5. Replies:
    1
    Views:
    590
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Apr 24, 2007
Loading...

Share This Page