Request.Segments crashes on server

  • Thread starter Thread starter SandpointGuy
  • Start date Start date
S

SandpointGuy

While on my dev machine, using local iis, I use Request.Seqments[2] in my
masterpage to determine the calling aspx. Works great. But when I push it
onto a server this crashes with an "Index Out Of Range"-type error; I placed
it in a try..catch block to validate this was causing the problem.
Is that the behavior one would expect? Is there a workaround to determine
the aspx?
Thanks, Mark
 
Back
Top