Groups | Blog | Home
all groups > asp.net building controls > august 2006 >

asp.net building controls : Bug in ASP.Net 2.0 ValidatorHookupControl (js) / HtmlTextWriter.Writeline ?


Martin
8/31/2006 12:00:00 AM
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
8/31/2006 12:00:00 AM
Actually I see that the standard textbox control renders as lower case input
too, so I need to look elsewhere.


[quoted text, click to view]

AddThis Social Bookmark Button