Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > web control with template doesn't render in designer....

Reply
Thread Tools

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

 
 
Klaus Salchner
Guest
Posts: n/a
 
      03-03-2004
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing rails render method outside of view / Decorating render Glenn Gillen Ruby 0 11-17-2006 02:30 PM
Page.Render do not render complete page Lau Lei Cheong ASP .Net 1 05-15-2004 04:10 AM
Web Custom Control Render Problem Billy Boy ASP .Net Web Controls 7 03-06-2004 04:01 PM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net Building Controls 1 07-02-2003 08:05 AM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net 0 07-01-2003 09:26 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57