Dave Burke : Online Community and Social Business Specialist

A SiteUrl CSControl Quickie

There are a number of juicy web controls now available in Chameleon, one of which is the SiteUrl CSControl.  As its name applies, the SiteUrl control creates a hyperlink from url information provided by the SiteUrls.config.  In the .ASPX or .ASCX page its use would be something like the following where I am creating a link to my running blog at http://dbvt.com/running from my site home page. 


<CSControl:SiteUrl UrlName="weblogapplication" ResourceName="weblogs"
          runat="server" Parameter1="running"   />


If we look at the SiteUrls.config location\url element for "weblogapplication" we see it takes an "app" (or applicationkey) parameter.  The appkey of my running blog is "running," entered in the SiteUrl control's Parameter1 property.  Very nice.


<url name = "weblogapplication"  path="##blogdirectory##default.aspx"
         pattern="##blogName##/default.aspx" physicalPath="##blogthemeDir##" 
         vanity="{2}?App=${{app}}" page="postlist.aspx" />


Comments (1) | Post RSS RSS comment feed

Posted on 6/16/2007 3:49:10 PM by Dave Burke
Categories: Community Server
Tags:

Related posts

Comments (1) -

6/18/2007 2:06:06 PM Permalink

Ahhhhh....I was wondering what the Parameter1, parameter2, etc were for on that control....

Matt Williams |


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke

Copyright © 2013 Dave Burke.  All Rights reserved.