This project is read-only.

Default.aspx "tag" Query String Handling

Aug 3, 2008 at 12:09 PM
Is there a specific reason that the code behind of default.aspx searches for the "tag querystring like this:

  ElseIf Not Request.RawUrl..IndexOf("?tag")) = -1 Then

as opposed to just checking the querystring variable like this

  ElseIf Not String.IsNullOrEmpty(Request.QueryString("tag")) Then

Sorry for the VB Code, but I am working with my BE.Net Visual Basic edition

The reason I ask, Is I am writing an extension that allows users to specify their own URL structure for Tags, Feeds, etc

And when I write from /tag/TagName to /default.aspx?tag=/TagName, the tag querystring isn't detected by checking the raw url