Discovering CSS refs in page custom control resides during design time.

Discussion in 'ASP .Net Building Controls' started by HTML, Jan 27, 2006.

  1. HTML

    HTML Guest

    Hi,

    I have custom controls that let developers apply CSS styles depending on the
    state of the control. They can do this at run-time and also at design-time
    in the properties pane. They currently need to type in the style class they
    want to use. I would like to give the control the ability at design-time to
    check out the CSS files linked to the page and display a list of available
    style classes in a drop down list. Is there a way I can do this? Thanks!
     
    HTML, Jan 27, 2006
    #1
    1. Advertising

  2. HTML

    Teemu Keiski Guest

    Hi,

    if you are using VS2005, there is one sandbox project by MS, namely "CSS
    Properties Window" which does pretty much this:
    http://www.asp.net/sandbox/app_sandman.aspx?tabindex=0&tabid=1

    --
    Teemu Keiski
    ASP.NET MVP, AspInsider
    Finland, EU
    http://blogs.aspadvice.com/joteke

    "HTML" <test@test.123> wrote in message
    news:u$...
    > Hi,
    >
    > I have custom controls that let developers apply CSS styles depending on
    > the state of the control. They can do this at run-time and also at
    > design-time in the properties pane. They currently need to type in the
    > style class they want to use. I would like to give the control the
    > ability at design-time to check out the CSS files linked to the page and
    > display a list of available style classes in a drop down list. Is there a
    > way I can do this? Thanks!
    >
     
    Teemu Keiski, Jan 28, 2006
    #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. Steve - DND
    Replies:
    1
    Views:
    289
    Steve - DND
    Oct 19, 2003
  2. Holger (David) Wagner
    Replies:
    7
    Views:
    549
    Scott Allen
    Aug 17, 2004
  3. John Nagle
    Replies:
    3
    Views:
    301
    John Nagle
    Feb 25, 2007
  4. Joey Lee

    Rendering Custom Control during design time

    Joey Lee, Jun 30, 2005, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    154
    Joey Lee
    Jul 1, 2005
  5. Jay Esguerra
    Replies:
    0
    Views:
    152
    Jay Esguerra
    Oct 13, 2003
Loading...

Share This Page