web control with template doesn't render in designer....

Discussion in 'ASP .Net Web Controls' started by Klaus Salchner, Mar 3, 2004.

  1. I have written a web control which supports templates. If no template is
    specified the control applies a default rendering. A sample template is
    below

    <stb:smarttoolboxitem id="SmartToolBoxItem2" runat="server"
    Description="Email the page URL<br>to a friend."
    IconURL="images/email.gif" Text="Email page" ToolTipText="Send page URL
    to friend.">
    <ToolBoxItemTemplate>
    <tr>
    <td>
    <img src="<%# Container.ImageURL %>" alt="<%#
    Container.AlternateText %>" border="0"/>
    </td>
    <td>
    <font color="#993300" size="2" face="Arial"><b><%#
    Container.Text %></b></font>
    <br>
    <font color="#3399ff" size="1" face="Arial"><%#
    Container.Description %></font>
    </td>
    </tr>
    </ToolBoxItemTemplate>
    </stb:smarttoolboxitem>

    The control renders fine when the page is shown in IE. But on the designer
    all the Container.PropertyName values are not present. Is this the default
    behavior of controls with a template. And how can I make sure it renders
    also in the designer?

    Any help is greatly appreciated...

    Regards, Klaus
    -----------------------------------------------
    Klaus Salchner
    email:

    Proud member of
    http://linkedin.com - become part of my professional network; it's a free
    3rd party tool
    http://gotdotnet.com
    http://theserverside.net
     
    Klaus Salchner, Mar 3, 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. Lau Lei Cheong

    Page.Render do not render complete page

    Lau Lei Cheong, May 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    2,078
    Lau Lei Cheong
    May 15, 2004
  2. Steve B.
    Replies:
    4
    Views:
    975
    Cheryl D Wise
    Jun 1, 2007
  3. Pete
    Replies:
    0
    Views:
    154
  4. A.D.
    Replies:
    0
    Views:
    129
  5. Glenn Gillen
    Replies:
    0
    Views:
    280
    Glenn Gillen
    Nov 17, 2006
Loading...

Share This Page