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
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