Bug in ASP.Net 2.0 ValidatorHookupControl (js) / HtmlTextWriter.Writeline ?

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

  1. #1

    Default Bug in ASP.Net 2.0 ValidatorHookupControl (js) / HtmlTextWriter.Writeline ?

    Hi,

    I'm working on a rendered control that I'm trying to put client side
    validation into.

    The issue I'm having is that ValidatorHookupControl isn't working for me.

    This appears to be because my markup uses the input tag in lower case, but
    ValidatorHookupControl has code like
    if (control.tagName != "INPUT" && control.tagName != "TEXTAREA" &&
    control.tagName != "SELECT")

    I tried outputing an uppercase INPUT to make the js work, but I still get a
    lower case input, inspite of changing my rendering from

    output.RenderBeginTag(HtmlTextWriterTag.Input);

    to

    output.RenderBeginTag("INPUT");



    I can't modify ValidatorHookupControl because it is some sort a dynamic file
    in ASP.Net 2

    Anyone been here/got a solution?

    Thanks

    Martin


    Martin Guest

  2. Similar Questions and Discussions

    1. Do we always have to use the HtmlTextWriter to create the control?
      Hello Everybody, Do we always have to use the HtmlTextWriter to create the control? Can we not use the overriden CreateChildControl to create...
    2. writeline permission denied
      I'm trying to append to a file a string such as the following: 127599.0 127838.5 14.434 87 first error - 500 internal server error refresh...
    3. FileSystemObject writeLine question
      You're using the CreateTextFile method of the FSO, which will do just that - create a file. If the file alread exists, it will get overwritten...
  3. #2

    Default Re: Bug in ASP.Net 2.0 ValidatorHookupControl (js) / HtmlTextWriter.Writeline ?

    Actually I see that the standard textbox control renders as lower case input
    too, so I need to look elsewhere.


    "Martin" <x@y.z> wrote in message
    news:uIfcZwNzGHA.1256@TK2MSFTNGP04.phx.gbl...
    > Hi,
    >
    > I'm working on a rendered control that I'm trying to put client side
    > validation into.
    >
    > The issue I'm having is that ValidatorHookupControl isn't working for me.
    >
    > This appears to be because my markup uses the input tag in lower case, but
    > ValidatorHookupControl has code like
    > if (control.tagName != "INPUT" && control.tagName != "TEXTAREA" &&
    > control.tagName != "SELECT")
    >
    > I tried outputing an uppercase INPUT to make the js work, but I still get
    > a lower case input, inspite of changing my rendering from
    >
    > output.RenderBeginTag(HtmlTextWriterTag.Input);
    >
    > to
    >
    > output.RenderBeginTag("INPUT");
    >
    >
    >
    > I can't modify ValidatorHookupControl because it is some sort a dynamic
    > file in ASP.Net 2
    >
    > Anyone been here/got a solution?
    >
    > Thanks
    >
    > Martin
    >
    >

    Martin 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