customizing validation script-injection error page.

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default customizing validation script-injection error page.

    I think i've googled to the end of the internet, but just can't find any
    resources to tell me how to customize the glorious error message that says:

    Server Error in '/Code' Application.

    A potentially dangerous request.form value was detected from the
    client.......



    How do I post a user friendly message? Or do I just assume that anyone who
    would generate such a message is a hacker and doesn't deserve a friendly
    message?

    Many Thanks,

    E. Ostrander


    EO Guest

  2. Similar Questions and Discussions

    1. Custom Validation Script
      I need to limit the numeric value a user can enter but keep the format as $0,000.00. I'm using the following validation script: function...
    2. An error has occurred in the script on this page
      Several of us who are using Contribute 3 and IE 6 seem to get this error on certain pages: An error has occurred in the script on this page Line...
    3. Recommendations for PHP Form Validation Script
      Where can I find an online PHP form validator script library to use? I have tried hacking the one here at work for weeks now and it's getting more...
    4. javascript validation script question
      Dwayne Epps wrote: :: :: I call the function with the form onSubmit event. There are 4 form :: fields that aren't required for input and when...
    5. Login script validation & sessions
      The below login script does work. The form does not seem to be submitting. I keep getting the username and password fields. The only errors I get...
  3. #2

    Default Re: customizing validation script-injection error page.

    All exceptions can be captured in two places, using event handlers:

    1. Page object has the Error property
    2. Global.asax has the method Application_Error

    Your task is to test the class of exception object and redirect to the
    desired page.

    You can get the current exception from
    HttpContext.Current.Server.GetLastError().

    --- Peter Blum
    [url]www.PeterBlum.com[/url]
    Email: [email]PLBlum@PeterBlum.com[/email]
    Creator of "Professional Validation And More" at
    [url]http://www.peterblum.com/vam/home.aspx[/url]
    and "Visual Input Security" at [url]http://www.peterblum.com/vise/home.aspx[/url]

    "EO" <me@home.com> wrote in message
    news:eIR6eb9$EHA.2704@TK2MSFTNGP10.phx.gbl...
    >I think i've googled to the end of the internet, but just can't find any
    >resources to tell me how to customize the glorious error message that says:
    >
    > Server Error in '/Code' Application.
    >
    > A potentially dangerous request.form value was detected from the
    > client.......
    >
    >
    >
    > How do I post a user friendly message? Or do I just assume that anyone who
    > would generate such a message is a hacker and doesn't deserve a friendly
    > message?
    >
    > Many Thanks,
    >
    > E. Ostrander
    >

    Peter Blum Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139