2 Responsed To This Post
Subsribes to this topic Comment RSS or TrackBack URL
mygif_alt
PasserBy Says, in 12-30-2007 at 17:57:06 from 216.84.124.26    

Shouldn’t this read: Request.Path.Substring(Request.ApplicationPath.Length+0);

Instead of:Request.Path.Substring(Request.ApplicationPath.Length+1);

mygif
Jimbob Says, in 5-8-2008 at 09:57:01 from 195.188.120.10    

No,

jasongeiger’s code is correct. Using Length+1 provides the page name without a leading backslash. This is more useful in many cases.

Leave A Reply

 Username (*required)

 Email Address (*private)

 Website (*optional)

Inform me when someone post new message here

Please Note: Comments Moderation maybe active so there is no need to resubmit your comment
NeverBlue Offers