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

K

Klaus Salchner

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: (e-mail address removed)

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top