Rendering design-time content on a web UserControl

Discussion in 'ASP .Net Building Controls' started by malibio, Jan 28, 2004.

  1. malibio

    malibio Guest

    I created a web user control and would like to add the ability for it to contain design-time rendering capabilities. So that, during development, when the control is dragged to an aspx web form, it'll show html content that contains what it would look like when ran. Is this possible? I created a ControlDesigner class and over rode the GetDesignTimeHtml() methode, then applied that class as the Designer (within the UserControl's attribute), but I still get that dull, button-looking UserControl image on the aspx page.
    malibio, Jan 28, 2004
    #1
    1. Advertising

  2. malibio

    Stanley Guest

    Have a look at my article:
    http://www.wwwcoder.com/main/parentid/261/site/2172/68/default.aspx


    -Stanley

    "malibio" <> wrote in message
    news:...
    > I created a web user control and would like to add the ability for it to

    contain design-time rendering capabilities. So that, during development,
    when the control is dragged to an aspx web form, it'll show html content
    that contains what it would look like when ran. Is this possible? I
    created a ControlDesigner class and over rode the GetDesignTimeHtml()
    methode, then applied that class as the Designer (within the UserControl's
    attribute), but I still get that dull, button-looking UserControl image on
    the aspx page.
    Stanley, Feb 2, 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. Barry Carr
    Replies:
    4
    Views:
    777
    Barry Carr
    Jan 15, 2004
  2. Oleg Ogurok

    design-time rendering doesn't happen unless properties changed

    Oleg Ogurok, Jul 11, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    106
    Oleg Ogurok
    Jul 11, 2003
  3. Stephen Miller
    Replies:
    1
    Views:
    277
    Alessandro Zifiglio
    Jan 2, 2004
  4. malibio

    Rendering design-time content on a web UserControl

    malibio, Jan 28, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    117
    malibio
    Jan 28, 2004
  5. Kan Grewal

    Web Usercontrol in a Web Usercontrol not displaying...

    Kan Grewal, Jul 6, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    110
    Kan Grewal
    Jul 7, 2004
Loading...

Share This Page