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

M

Martin

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
 
M

Martin

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,052
Latest member
LucyCarper

Latest Threads

Top