Pale Musings

Thoughts from a mind twisted by tech and sports

Viewstate Helper from Binary Fortress Software

Wow, I am going to be accused of becoming a Scott Hanselman sycophant if he keeps up the pace of the great posts he’s had lately!  In his most recent post (as of the time of this writing) he points out a piece of software recently discovered.  After reading through his review I had to try it out for myself.  It is the ASP.NET Viewstate Helper from Binary Fortress Software.  This is a very nice tool!

It sits in the background monitoring the HTTP conversations that IE has.  It presents a historical list of the pages visted along with some stats about the size of the page and the Viewstate, if it has one.  It also allows you to double click on a page to see the decompiled version of the Viewstate.

It tries to display the viewstate in a tree view, although I have found it doesn’t always work.  It does give you a text representation that will get you what you need although you may have to search through it a bit if the viewstate is complex.

The one downside I have found so far is that it does not work with Firefox, or at least I have not happened upon how to do it.  For the time, I can live with that.  The information that it provided on a few of the sites we’ve created has already been eye-opening.

February 22, 2007 Posted by palehorse | .NET, C#, Development, Internet, Reviews, VB.NET | Leave a Comment

URL Rewriting with IIS

It seems that the topic of the day, or rather the past 2 days, has been URL rewriting with IIS. Yesterday I read of Scott Hanselman’s realization concerning the different ways it was possible to get to his blog.

Nothing new really, but very valid. Page ranking can be affected by allowing these to methods. Many engines may recognize these as duplicate content rather than the same actual page. It makes one wonder if the terms URL and URI should really stand for Unique. Perhaps we could start calling them AURL’s and AURI’s, for Almost. I suppose it all depends on your point of view.

Scott’s discovery is simple to fix in Apache, as he describes, and as he points out it can also be accomplished with ISAP_Rewrite. Jeff Atwood talks more about this in his discussion about URL rewriting. He further hits upon a technique that we have used to avoid image hotlinking. Image hotlinking is the practice of someone putting an image in their web page that simply links to an hosted someone other person’s site. The effects of this can include increased bandwidth usage, inaccurate statistics and is considered, perhaps not unethical but certainly not accepted.

We decided to use ISAPI_Rewrite. We did try free option mentioned by Jeff, Ionic’s ISAPI Rewrite Filter, but the quirks weren’t worth the price of purchasing the product from Helicon. A colleague of mine at work has a good handle on the syntax. So far we have been very happy with the results and the performance. In our case the original need came from the requirement to integrate a commercial web package that performed some functions with one that we developed for other functionality. We had the need to provide a single login point rather than two authentication pages and it had to come before ASP was handed the request.

RewriteCond Host: (app\.mydomain\.com)
RewriteRule (?i:/login.aspx\??(.*)) http://www.mydomain.com/Login.aspx?FromApp=true&$2 [R]

We used similar methods to redirect to pages for the users profile, password changing and other things. It seems to work pretty good so far, and with it came the ability to fix the problems mentioned by Jeff and Scott.

If you have any concern at all about the variables that can affect your page rank with the search engines you should analyze your pages and the possible ways they can be accessed and determine whether or not you need to use URL rewriting.

One last point. If you are not concerned about your page ranking, you should be. Otherwise, why put your content on the Internet?

February 22, 2007 Posted by palehorse | Internet, Operating Systems, Windows | Leave a Comment

A Milestone!

Apparently the Windows 2000 daylight saving issue is on the mind of many network administrators.  My original post pointing to the patch that we used is getting quite a bit of traffic.  It is understandable with the new date for daylight saving time looming only a few weeks away.

But that is not the milestone.

Windows 2K daylight saving patch gains #1 spot on GoogleMost of the traffic that post is receiving is coming from search engines.  I decided to check out how people were getting there by searching on Google for Windows 2k daylight saving patch and was surprised, very pleasantly I might add, to find the #1 link for that search term to be my post!

I know that the rankings on google are fairly fluid so I thought I would capture it for posterity.  Thank you Google and thanks to all out there who may have linked back here to help get me a milestone such as this!

February 22, 2007 Posted by palehorse | Blogging, Networking, Operating Systems, Windows | Leave a Comment