<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://vstoolsforum.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ComponentArt</title><link>http://vstoolsforum.com/blogs/componentart/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Build: 20611.960)</generator><item><title>Using resuable content with a ComponentArt Dialog</title><link>http://vstoolsforum.com/blogs/componentart/archive/2008/07/23/using-resuable-content-with-a-componentart-dialog.aspx</link><pubDate>Wed, 23 Jul 2008 12:53:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:1159</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://vstoolsforum.com/blogs/componentart/rsscomments.aspx?PostID=1159</wfw:commentRss><comments>http://vstoolsforum.com/blogs/componentart/archive/2008/07/23/using-resuable-content-with-a-componentart-dialog.aspx#comments</comments><description>&lt;p&gt;I recently wrote in to ComponentArt support on this subject, here is the email thread. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sirs:&lt;br /&gt;I&amp;#39;d like to be able to somehow templage the Dialog control so that I didnt have so much text on my .aspx page. &lt;/p&gt;
&lt;p&gt;In other words, I&amp;#39;d like to replace everything in the &amp;lt;header&amp;gt; and &amp;lt;footer&amp;gt; areas and somehow populate them from a class. &lt;/p&gt;
&lt;p&gt;Is that at all possible?&lt;/p&gt;
&lt;p&gt;something like:&lt;/p&gt;
&lt;p&gt;Dialog1.header.innerhtml = &amp;quot;&amp;lt;table&amp;gt;...&amp;lt;/table&amp;gt;&amp;quot;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Steve,&lt;/p&gt;
&lt;p&gt;The easiest way to do this would be to load controls into the Content in code behind by using:&lt;/p&gt;
&lt;p&gt;Dialog1.Header.Controls.Add(Page.LoadControl(&amp;quot;Head1.ascx&amp;quot;));&lt;br /&gt;Dialog1.Content.Controls.Add(Page.LoadControl(&amp;quot;Page1.ascx&amp;quot;));&lt;br /&gt;Dialog1.Footer.Controls.Add(Page.LoadControl(&amp;quot;Foot1.ascx&amp;quot;));&lt;/p&gt;
&lt;p&gt;Just leave your sections empty in the dialog.&lt;/p&gt;
&lt;p&gt;&amp;lt;Header&amp;gt;&amp;lt;/Header&amp;gt;&lt;br /&gt;&amp;lt;Content&amp;gt;&amp;lt;/Content&amp;gt;&lt;br /&gt;&amp;lt;Footer&amp;gt;&amp;lt;/Footer&amp;gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;img src="http://vstoolsforum.com/aggbug.aspx?PostID=1159" width="1" height="1"&gt;</description></item><item><title>Template code for adding a ComponentArt Menu to a site</title><link>http://vstoolsforum.com/blogs/componentart/archive/2008/03/28/template-code-for-adding-a-componentart-menu-to-a-site.aspx</link><pubDate>Fri, 28 Mar 2008 15:57:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:946</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://vstoolsforum.com/blogs/componentart/rsscomments.aspx?PostID=946</wfw:commentRss><comments>http://vstoolsforum.com/blogs/componentart/archive/2008/03/28/template-code-for-adding-a-componentart-menu-to-a-site.aspx#comments</comments><description>&lt;p&gt;Adding a ComponentArt menu to a web site is something that I have to do frequently, here is template code to do that quickly&lt;/p&gt;
&lt;p&gt;Menu code:&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;ComponentArt:Menu id=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Menu1"&lt;/span&gt;
    ExpandDelay=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"50"&lt;/span&gt;
    DefaultGroupCssClass=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Group"&lt;/span&gt;
    SiteMapXmlFile=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"menuData.xml"&lt;/span&gt;
    ImagesBaseUrl=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"images/"&lt;/span&gt;
    DefaultItemLookID=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"DefaultItemLook"&lt;/span&gt;
    EnableViewState=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"false"&lt;/span&gt; Width=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"100%"&lt;/span&gt;
    runat=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"server"&lt;/span&gt;&amp;gt;
    &amp;lt;ItemLooks&amp;gt;
        &amp;lt;ComponentArt:ItemLook LookID=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"DefaultItemLook"&lt;/span&gt; CssClass=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Item"&lt;/span&gt; 
            HoverCssClass=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"ItemH"&lt;/span&gt; ExpandedCssClass=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"ItemExp"&lt;/span&gt; LabelPaddingLeft=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"5"&lt;/span&gt; 
            LabelPaddingRight=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"15"&lt;/span&gt; LabelPaddingTop=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"2"&lt;/span&gt; LabelPaddingBottom=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"2"&lt;/span&gt; 
            RightIconUrl=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"arrow.gif"&lt;/span&gt; RightIconWidth=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"15"&lt;/span&gt; RightIconHeight=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"10"&lt;/span&gt; 
            RightIconVisibility=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"WhenExpandable"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;
        &amp;lt;ComponentArt:ItemLook LookID=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"EdgeLook"&lt;/span&gt; CssClass=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"ItemEdge"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;
        &amp;lt;ComponentArt:ItemLook LookID=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"BreakItem"&lt;/span&gt; ImageUrl=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"break.gif"&lt;/span&gt; ImageHeight=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"1"&lt;/span&gt; ImageWidth=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"100%"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;
    &amp;lt;/ItemLooks&amp;gt;
&amp;lt;/ComponentArt:Menu&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Create MenuData.xml like this:&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;&amp;lt;SiteMap&amp;gt;
 &amp;lt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt; text=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;" "&lt;/span&gt; width=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"5px"&lt;/span&gt; LookID=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"EdgeLook"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;
 &amp;lt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt; text=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Home"&lt;/span&gt; NavigateUrl=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Default.aspx"&lt;/span&gt;  &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;


 &amp;lt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt; text=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;" "&lt;/span&gt; width=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"5px"&lt;/span&gt; LookID=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"EdgeLook"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;
 &amp;lt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt; text=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Photo Album"&lt;/span&gt; NavigateUrl=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"PhotoAlbums.aspx"&lt;/span&gt;  &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;


 &amp;lt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt; text=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;" "&lt;/span&gt; width=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"5px"&lt;/span&gt; LookID=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"EdgeLook"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;
 &amp;lt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt; text=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"Photo Caption Contest"&lt;/span&gt; NavigateUrl=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"PhotoCaptionContest.aspx"&lt;/span&gt;  &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;


 &amp;lt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt; text=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;" "&lt;/span&gt; width=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"5px"&lt;/span&gt; LookID=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"EdgeLook"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;
 &amp;lt;&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;item&lt;/span&gt; text=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;" "&lt;/span&gt; width=&lt;span style="color: #666666;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;"100%"&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;/&lt;/span&gt;&amp;gt;
&amp;lt;/SiteMap&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then add the .css file:&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;.Group
{
 border:solid 1px black; 


 background-repeat:repeat;
 background-position:&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;left&lt;/span&gt;;
 padding-bottom: 0px;
 padding-top:0px;
 padding-&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;left&lt;/span&gt;:2px;
 padding-&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;right&lt;/span&gt;: 2px; 
 text-align: center;
 height:22px; 
 vertical-align:middle;
 font-size:12px; 
 color:white;


}
.test { }


.ItemEdge
{
 font-family: verdana;
 background-image :url(/images/menuBG2.gif);
 border:solid 0px black; 
 cursor:pointer;
}
.&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;Item&lt;/span&gt;
{
 font-family: verdana;
 background-image :url(/images/menuBG.gif);
 border:solid 0px black; 
 cursor:pointer;
}


.ItemH
{
 font-family: verdana; 
 background-image :url(/images/menuBG.gif);
 color:silver; 
 border:solid 0px black; 
 cursor:pointer;
}


.ItemExp
{
  color:black; 
  font-size:12px; 
  border:solid 0px black; 
  cursor:pointer;
}


 &lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;&lt;img src="http://vstoolsforum.com/aggbug.aspx?PostID=946" width="1" height="1"&gt;</description></item><item><title>Licensing</title><link>http://vstoolsforum.com/blogs/componentart/archive/2008/02/20/licensing.aspx</link><pubDate>Wed, 20 Feb 2008 21:32:00 GMT</pubDate><guid isPermaLink="false">05d3ee43-09e1-4c21-9d53-64ecaf1acc4f:855</guid><dc:creator>Steve Gray</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://vstoolsforum.com/blogs/componentart/rsscomments.aspx?PostID=855</wfw:commentRss><comments>http://vstoolsforum.com/blogs/componentart/archive/2008/02/20/licensing.aspx#comments</comments><description>&lt;p&gt;This is a small piece of code that I got in response to a request on the CA fourm. I&amp;#39;m posting it here so that I can find it more easily when I need it. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;The issue is that when I open an older site to edit it, sometimes the ComponentArt dll gets updated. Then, the client will call sometime later and complain about the licensing &amp;#39;nag&amp;#39; screen. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;This code will do something if the menu is not properly licensed&lt;/p&gt;
&lt;p&gt;&lt;pre style="overflow: scroll; background-color: #f2f2f2;"&gt;&lt;span style="color: Black;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;if&lt;/span&gt; &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;not&lt;/span&gt; menu1.islicensed() &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;then&lt;/span&gt;


     &lt;span style="color: Green;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;'do something&lt;/span&gt;


    menu1.visible &lt;span style="color: Red;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;=&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;false&lt;/span&gt;


&lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;end&lt;/span&gt; &lt;span style="color: Blue;background-color: Transparent;font-family: Courier New;font-size: 11px;font-weight: normal;"&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;&lt;img src="http://vstoolsforum.com/aggbug.aspx?PostID=855" width="1" height="1"&gt;</description></item></channel></rss>