Ask a Question related to ASP.NET Building Controls, Design and Development.
-
Martin #1
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
-
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... -
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... -
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... -
Martin #2
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



Reply With Quote

