Posted on: 9/12/2014 1:28:57 AM | Views : 417

Can anyone tell me why this code would stop Telerik Controls from stop working?
When I remove the entire code: Telerik appears to work fine.
I am wanting to use this code to let my users know that some major code had to change etc.
void Application_BeginRequest(object sender, EventArgs e) { string[] segments = Request.Url.Segments; // If the Segment length is 2 and the 2nd segment/index 1 does not contain .aspx // then let us set up a new path and redirect and add the segments[1] // on the code in CUstom404Error.aspx page can pick up off the query string!Q if (segments.Length == 2 && !segments[1].EndsWith(".aspx")) { string newPath = "~/Pages/Custom404Error.aspx?aspxerrorpath=/" + segments[1]; Response.Redirect(newPath); } }

Go to the complete details ...