Menu

Want to work with us? We're on the lookout for a talented Digital Project Manager.

We're hiring

Custom Error Message HttpRequestValidationException

Web Bureau


04 September 2012 by Web Bureau

Dim context = HttpContext.Current

        Dim exception = context.Server.GetLastError()

        If TypeOf exception Is HttpRequestValidationException Then

            Response.Clear()

            Response.StatusCode = 200

            Response.Redirect("/", False)

            Response.End()

            Return

        End If

Grow your businessStart a project with us today.