Templated control not rendering Web User Controls

Discussion in 'ASP .Net Web Controls' started by Allan Ebdrup, Mar 27, 2006.

  1. Allan Ebdrup

    Allan Ebdrup Guest

    I have a templated control, it works fine at runtime, but at designtime I
    can't see the web user controls used in the template. I have this template
    in my control:
    ---
    <Wizard>test
    <uc1:TelephoneNumber ID="TelephoneNumber1" runat="server" />
    </Wizard>
    ---
    But in the design view only the "test" text appears, at runtime the web user
    control is rendered fine.
    How do I get the designtime to render the web user control?

    Kind Regards,
    Allan Ebdrup
     
    Allan Ebdrup, Mar 27, 2006
    #1
    1. Advertising

  2. http://msdn.microsoft.com/library/d...s/dnaspp/html/ASPNet-AddDesignTimeSupport.asp
    --
    HTH,
    Phillip Williams
    http://www.societopia.net
    http://www.webswapp.com


    "Allan Ebdrup" wrote:

    > I have a templated control, it works fine at runtime, but at designtime I
    > can't see the web user controls used in the template. I have this template
    > in my control:
    > ---
    > <Wizard>test
    > <uc1:TelephoneNumber ID="TelephoneNumber1" runat="server" />
    > </Wizard>
    > ---
    > But in the design view only the "test" text appears, at runtime the web user
    > control is rendered fine.
    > How do I get the designtime to render the web user control?
    >
    > Kind Regards,
    > Allan Ebdrup
    >
    >
    >
     
    Phillip Williams, Mar 27, 2006
    #2
    1. Advertising

  3. Hi Allan,

    I've performed some tests according to the custom template control you
    mentioned. Yes, I did reproduce the problem behavior you encountered. I
    think it is possibly caused by some additional required implementation we
    didn't add, I'm currently doing some further research on this and will
    update you as soon as I get any new update. In the mean time, if there is
    any new finding on your side, also welcome to post here.

    Regards,

    Steven Cheng
    Microsoft Online Community Support


    ==================================================

    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.

    ==================================================


    This posting is provided "AS IS" with no warranties, and confers no rights.
     
    Steven Cheng[MSFT], Mar 28, 2006
    #3
  4. Allan Ebdrup

    Allan Ebdrup Guest

    "Steven Cheng[MSFT]" <> wrote in message
    news:...
    > Hi Allan,
    >
    > I've performed some tests according to the custom template control you
    > mentioned. Yes, I did reproduce the problem behavior you encountered. I
    > think it is possibly caused by some additional required implementation we
    > didn't add, I'm currently doing some further research on this and will
    > update you as soon as I get any new update. In the mean time, if there is
    > any new finding on your side, also welcome to post here.


    I'm looking forward to hearing what you find. I've noticed that if you
    enable template editing the web user control is displayed correctly when
    editing the template. Also if the control is a CompositeControl child web
    user controls are rendered correctly in design time.

    Kind Regards,
    Allan Ebdrup
     
    Allan Ebdrup, Mar 28, 2006
    #4
  5. Hi Allan,

    Sorry for keep you waiting. After some further research, I found that for
    normal view in design-time, it is the fixed behavior that usercontrol'
    won't display. This is the same for those template in FormView and
    GridView.... And only in EditMode or those editable template will those
    usercontrol be displayed as runtime style. I'm afraid currently it is
    limited. However, you can submit this as a request to the MSDN product
    feedback center so that the dev teams can get feedback on this:

    http://lab.msdn.microsoft.com/productfeedback/default.aspx

    Regards,

    Steven Cheng
    Microsoft Online Community Support


    ==================================================

    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.

    ==================================================


    This posting is provided "AS IS" with no warranties, and confers no rights.



    Get Secure! www.microsoft.com/security
    (This posting is provided "AS IS", with no warranties, and confers no
    rights.)
     
    Steven Cheng[MSFT], Mar 30, 2006
    #5
    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. news.microsoft.com
    Replies:
    1
    Views:
    558
    Teemu Keiski
    Apr 9, 2005
  2. RA Scheltema
    Replies:
    3
    Views:
    424
    RA Scheltema
    Jan 6, 2004
  3. Replies:
    0
    Views:
    2,284
  4. news.microsoft.com

    Custom Templated Control not rendering asp.net controls correctly

    news.microsoft.com, Apr 8, 2005, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    172
    Teemu Keiski
    Apr 9, 2005
  5. news.microsoft.com

    Custom Templated Control not rendering asp.net controls correctly

    news.microsoft.com, Apr 8, 2005, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    170
    Teemu Keiski
    Apr 9, 2005
Loading...

Share This Page