Professional Web Applications Themes

Validation client javascript error - ASP.NET General

In the file WebUIValidation.js, when a postback that doesn't fail the validation has a javascript error saying summary is undefined in the ValidationSummaryOnSubmit function. Page_ValidationSummaries has a length of 1 but there are no array entries. This is the line that fails: summary.style.display = "none"; TIA, Gary Varga...

  1. #1

    Default Validation client javascript error

    In the file WebUIValidation.js, when a postback that
    doesn't fail the validation has a javascript error saying
    summary is undefined in the ValidationSummaryOnSubmit
    function. Page_ValidationSummaries has a length of 1 but
    there are no array entries.

    This is the line that fails:

    summary.style.display = "none";

    TIA,
    Gary Varga
    Gary Guest

  2. #2

    Default RE: Validation client javascript error

    Hi Gary,

    In order to help you, I need to recreate this problem on my own machine.
    What are the steps for setting up a page that will generate this error?

    Thank you, Mike Moore
    Microsoft, ASP.NET

    This posting is provided "AS IS", with no warranties, and confers no rights.


    -------------------- 

    Mike Guest

  3. #3

    Default RE: Validation client javascript error

    Thanks for the reply, Mike.

    I have a control derived from ValidationSummary in a dll.
    I used this in a user control and included it in a page.
    This page is derived from a class which itself derives
    from System.Web.UI.Page.

    I can send you the dll and the updated WebUIValidation.js
    doent - yes I have added to this in one place, I added
    a new display type - if you want.

    Regards,
    Gary
     
    my own machine. 
    generate this error? 
    and confers no rights. [/ref]
    V5.50.4910.0300 [/ref]
    microsoft.public.dotnet.framework.aspnet:171846 [/ref]
    saying [/ref]
    but 
    >
    >.
    >[/ref]
    Gary Guest

Similar Threads

  1. Client-Side Validation of asp:TextBox with Javascript
    By Matthew Wieder in forum ASP.NET General
    Replies: 3
    Last Post: March 10th, 04:08 PM
  2. Client-Side Validation with Validators and JavaScript
    By Nathan in forum ASP.NET Building Controls
    Replies: 4
    Last Post: February 11th, 07:58 PM
  3. ASP.NET 2.0: Detecting if client-side validation javascript regist
    By Ben Fidge in forum ASP.NET Building Controls
    Replies: 0
    Last Post: March 16th, 02:09 PM
  4. Client-side Javascript validation of "select multiple" for PHP
    By Phil Powell in forum PHP Development
    Replies: 3
    Last Post: October 19th, 10:04 PM
  5. Replies: 0
    Last Post: June 25th, 03:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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