Dear visitor, thanks for stopping by! If you want, you can follow all updates on
Snowball.be via RSS. You can also follow me on
Twitter or
Facebook. More interesting posts from other
Microsoft Regional Directors can be found at
The Region.
After my friend Kris Van der Mast published an article on making custom macros for dasBlog, I now added them to Snowball.be too.
In fact, I added 2 more links: to DotNetKicks and Reddit.
Here's the source code for these...
public virtual Control Reddit(string linkText, string cssStyle)
{
if(this.currentEntry != null)
{
string link = this.currentEntry.Link != null ? this.currentEntry.Link : Utils.GetPermaLinkUrl(this.currentEntry);
return new LiteralControl("<a href=\"http://reddit.com/submit?url=" + link + "\" class=\"" + cssStyle + "\">" + linkText + "</a>");
}
return new LiteralControl("");
}
public virtual Control DotNetKickIt(string linkText, string cssStyle)
{
if(this.currentEntry != null)
{
string link = this.currentEntry.Link != null ? this.currentEntry.Link : Utils.GetPermaLinkUrl(this.currentEntry);
return new LiteralControl("<a href=\"http://www.dotnetkicks.com/kick/?url=" + link + "\" class=\"" + cssStyle + "\">" + linkText + "</a>");
}
return new LiteralControl("");
}
Now, let the clicking start 