Server Error in '/' Application.

Argument 'Length' must be greater or equal to zero.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Argument 'Length' must be greater or equal to zero.

Source Error:


Line 2:  sub page_load()
Line 3:   dim u as string=server.urldecode(Request.QueryString.ToString & "")
Line 4:  	u=right(u,len(u)-2)
Line 5:  	response.redirect(u)
Line 6:  end sub

Source File: D:\webRoot\www.prestaproducts.com\adminsite\content\r.aspx    Line: 4

Stack Trace:


[ArgumentException: Argument 'Length' must be greater or equal to zero.]
   Microsoft.VisualBasic.Strings.Right(String str, Int32 Length) +723333
   ASP.adminsite_content_r_aspx.page_load() in D:\webRoot\www.prestaproducts.com\adminsite\content\r.aspx:4
   System.Web.Util.CalliHelper.ArglessFunctionCaller(IntPtr fp, Object o) +12
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +11122206
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428


Version Information: Microsoft .NET Framework Version:2.0.50727.8810; ASP.NET Version:2.0.50727.8745