Ian Beckett

RSS feed

    Recent comments

    Authors

    Add "nofollow" rel attribute by default for comments in Blog Engine .NET

    By default "nofollow" is not added to the comment user URLs in Blog Engine .NET. 

    You probably want to use "nofollow", because you do not necessarily trust the links being added by your visitors, and you do not want to lose page rank by linking to potentially bad sites.

    This is very easy to do with Blog Engine .NET version 1.5.  Simply follow the steps:

    1. Open the CommentView.ascx file in your theme directory (root\themes\).

    2. Find the only "href" character string in the file.  It's on this line:

    <%= Comment.Website != null ? "<a href=\"" + Comment.Website + "\" class=\"url fn\">" + Comment.Author + "</a>" : "<span class=\"fn\">" +Comment.Author + "</span>" %>

    3. Change "a href=\" to "a rel=\"nofollow\" href=\"

    4. Save the file, and you're done! 

    Refresh the page, take a look at the source, and you see the issue is fixed:


    Categories: .NET
    Posted by ibeckett on Saturday, October 10, 2009 5:47 AM
    Permalink | Comments (0) | Post RSSRSS comment feed

    URL rewriting guides on the web...

    http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx

    http://msdn.microsoft.com/en-us/library/ms972974.aspx


    Posted by ibeckett on Sunday, May 10, 2009 7:31 AM
    Permalink | Comments (0) | Post RSSRSS comment feed

    Build a Data-Driven Web Site in less than 14min

    "See how simple it is to create data-driven web sites using ASP.NET 2.0, Visual Web Developer 2005 Express Edition, and SQL Server 2005 Express Edition. Learn how to create a database, add its data, and display that data on a web page.

    Duration: 13 minutes, 41 seconds"

    watch it at http://www.asp.net/learn/videos/video-49.aspx 


    Categories: .NET | ASP.NET | C# | web stuff
    Posted by ibeckett on Tuesday, April 28, 2009 4:36 PM
    Permalink | Comments (0) | Post RSSRSS comment feed

    accessing SharePoint document libraries using UNC in Windows Server 2003

    Recently I wrote a .net console script to automate some stuff in Excel and part of the script includes uploading all of the contents of a given directory to a SharePoint document library.  After moving the script to production it did not work. Turns out that you need to have the WebClient service enabled. This service is disabled by default in Server 2003 so you will need to set it to Automatic or Manual and then start the service.

    After starting the WebClient service you can access the SharePoint library like: \\sharepoint\site1\documentlibrary


    Posted by ibeckett on Sunday, May 04, 2008 5:19 AM
    Permalink | Comments (0) | Post RSSRSS comment feed