<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>A Piece of Glass</title><link>http://weblogs.asp.net/bryanglass/default.aspx</link><description>A collection ASP.NET, SharePoint, and C# information from Bryan Glass</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Google "Page Rank" Hiccup</title><link>http://weblogs.asp.net/bryanglass/archive/2008/08/04/google-quot-page-rank-quot-hiccup.aspx</link><pubDate>Mon, 04 Aug 2008 19:57:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6482411</guid><dc:creator>marker126</dc:creator><slash:comments>3</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/bryanglass/rsscomments.aspx?PostID=6482411</wfw:commentRss><comments>http://weblogs.asp.net/bryanglass/archive/2008/08/04/google-quot-page-rank-quot-hiccup.aspx#comments</comments><description>&lt;p&gt;I recently worked on a complete web site redesign project, converting the site from classic ASP to ASP.NET.&amp;nbsp; Many of the page URLs were going to change (despite the fact I kept the .html extension), so I whipped together a "redirection system" in the form of an HTTPModule.&amp;nbsp; The module simply checked that the file exists (or will be handled), and if not, queries a database to determine if the requested page has a "new" location.&amp;nbsp; It then sends a "301 Moved Permanently" response with the new URL (and logged the referrer so they can be notified of the new location, etc).&amp;nbsp; This system was meant for internal redirects only.&amp;nbsp; Of course, someone put an entry into the database redirecting an old page to an external page.&lt;/p&gt;  &lt;p&gt;I then noticed the site has the &lt;b&gt;#1 page rank&lt;/b&gt; on Google for keywords "acrobat reader setup," and the site redesigned is a university medical library.&lt;/p&gt;  &lt;p&gt;There used to be a page named "acrobat.html" that gave basic instructions on the installation of Adobe Acrobat.&amp;nbsp; During the redesign, we decided there was no need for this page to exist anymore, and someone put in a redirect to Adobe's installation page (&lt;a href="http://www.adobe.com/products/acrobat/readstep2.html" mce_href="http://www.adobe.com/products/acrobat/readstep2.html"&gt;www.adobe.com/products/&lt;b&gt;acrobat&lt;/b&gt;/readstep2.html&lt;/a&gt;).&lt;/p&gt;  &lt;p&gt;The Google query: &lt;a href="http://www.google.com/search?hl=en&amp;amp;q=acrobat+reader+setup" title="http://www.google.com/search?hl=en&amp;amp;q=acrobat+reader+setup" mce_href="http://www.google.com/search?hl=en&amp;amp;q=acrobat+reader+setup"&gt;http://www.google.com/search?hl=en&amp;amp;q=acrobat+reader+setup&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Google's cached page: &lt;a href="http://www.google.com/url?sa=t&amp;amp;ct=clnk&amp;amp;cd=1&amp;amp;url=http%3A%2F%2F64.233.169.104%2Fsearch%3Fq%3Dcache%3APdCI1Oj1oNUJ%3Awww.hshsl.umaryland.edu%2Facrobat.html" title="http://www.google.com/url?sa=t&amp;amp;ct=clnk&amp;amp;cd=1&amp;amp;url=http%3A%2F%2F64.233.169.104%2Fsearch%3Fq%3Dcache%3APdCI1Oj1oNUJ%3Awww.hshsl.umaryland.edu%2Facrobat.html%2Bacrobat%2Breader%2Bsetup%26hl%3Den%26ct%3Dclnk%26cd%3D1%26gl%3Dus%26client%3Dfirefox-a&amp;amp;ei=2leXSOiDDZCWedvsybIJ&amp;amp;usg=AFQjCNHltUzzn2udjSAx49r6qL1jXBaYuw&amp;amp;sig2=pjZrc6YORIanDQNi0w7oTw" mce_href="http://www.google.com/url?sa=t&amp;amp;ct=clnk&amp;amp;cd=1&amp;amp;url=http%3A%2F%2F64.233.169.104%2Fsearch%3Fq%3Dcache%3APdCI1Oj1oNUJ%3Awww.hshsl.umaryland.edu%2Facrobat.html"&gt;http://www.google.com/url?sa=t&amp;amp;ct=clnk&amp;amp;cd=1&amp;amp;url=http%3A%2F%2F64.233.169.104%2Fsearch%3Fq%3Dcache%3APdCI1Oj1oNUJ%3Awww.hshsl.umaryland.edu%2Facrobat.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;My page (redirected to Adobe): &lt;a href="http://www.hshsl.umaryland.edu/acrobat.html" mce_href="http://www.hshsl.umaryland.edu/acrobat.html"&gt;http://www.hshsl.umaryland.edu/acrobat.html&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;&amp;nbsp;&lt;/p&gt;  &lt;p&gt;If anyone has any ideas on how this happened (it has been like this for over a month now), I'd love to hear them.&amp;nbsp; I'm tempted to redirect a couple other pages to see if I can duplicate this.&lt;/p&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6482411" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/bryanglass/archive/tags/ASP.NET/default.aspx">ASP.NET</category><category domain="http://weblogs.asp.net/bryanglass/archive/tags/Google/default.aspx">Google</category><category domain="http://weblogs.asp.net/bryanglass/archive/tags/HTTPModule/default.aspx">HTTPModule</category></item><item><title>Changing Links List In SharePoint 2007 To Open In New Browser Window</title><link>http://weblogs.asp.net/bryanglass/archive/2008/03/07/changing-links-list-in-sharepoint-2007-to-open-in-new-browser-window.aspx</link><pubDate>Fri, 07 Mar 2008 19:29:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:5935281</guid><dc:creator>marker126</dc:creator><slash:comments>41</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/bryanglass/rsscomments.aspx?PostID=5935281</wfw:commentRss><comments>http://weblogs.asp.net/bryanglass/archive/2008/03/07/changing-links-list-in-sharepoint-2007-to-open-in-new-browser-window.aspx#comments</comments><description>&lt;div&gt;I was recently looking for the easiest way to modify the links list in SharePoint 2007 to open the links in a new window.&amp;nbsp; In my case, every link in a links list points to an external site, so they should all be opening a new browser window.&lt;/div&gt;  &lt;div&gt;&amp;nbsp;&lt;/div&gt;  &lt;div&gt;There were a couple custom features I found, but most required modifying (or replacing) the existing links lists, something that I did not want to do.&amp;nbsp; Anyway, here's how to make the change (note:&amp;nbsp; I modified the original files, this probably isn't a best practice, and the changes could be lost by updates from Microsoft).&lt;/div&gt;  &lt;div&gt;&amp;nbsp;&lt;/div&gt;  &lt;div&gt;First, open the schema file for the links list feature.&amp;nbsp; In my case, it was located at:&lt;/div&gt;  
&lt;blockquote&gt;   &lt;div&gt;C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\LinksList\Links\schema.xml&lt;/div&gt; &lt;/blockquote&gt;
  &lt;div&gt;In this file there should be two instances of the following:&lt;/div&gt;  &lt;div&gt;&amp;nbsp;&lt;/div&gt;  &lt;div&gt;   
&lt;pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: rgb(244, 244, 244);"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;Column&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;Name&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="URL"&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;HTMLEncode&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="TRUE"&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;HTML&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&amp;lt;!&lt;/span&gt;[CDATA["&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&lt;/span&gt;]]&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;HTML&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Replace them both with this:&lt;/div&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
  
&lt;pre style="border-style: none; margin: 0em; padding: 0px; overflow: visible; font-size: 8pt; width: 100%; color: black; line-height: 12pt; font-family: consolas,'Courier New',courier,monospace; background-color: rgb(244, 244, 244);"&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;Column&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;Name&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="URL"&lt;/span&gt; &lt;span style="color: rgb(255, 0, 0);"&gt;HTMLEncode&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;="TRUE"&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255);"&gt;/&amp;gt;&amp;lt;&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;HTML&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&amp;lt;!&lt;/span&gt;[CDATA[" target="_blank"&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&lt;/span&gt;]]&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span style="color: rgb(128, 0, 0);"&gt;HTML&lt;/span&gt;&lt;span style="color: rgb(0, 0, 255);"&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;

&lt;p&gt;Then restart IIS (or just the application's worker process), and now all the links in your links lists should open a new browser window!&lt;/p&gt;
&lt;style&gt;
#container { width: 100%; }
&lt;/style&gt;
&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=5935281" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/bryanglass/archive/tags/MOSS/default.aspx">MOSS</category><category domain="http://weblogs.asp.net/bryanglass/archive/tags/Sharepoint/default.aspx">Sharepoint</category></item></channel></rss>
