In developing web form controls (ascx files) the control ids are usually
generated as is (this is what the books show and the situation we have for
most "sandpit" projects). ie if I have a form with a control
called "TestDropDown" that is the id or name I see generated in the HTML at
the client end.

Two other projects working alongside our group reported that they were
getting nasty prefixes which were messing up their client-side JavaScript
(validation controls can't do everything). In IE all fields are prefixed
with "_ctln_" where n is the sequence of the control. In Netscape they are
prefixed with something similar (but different enough to make it a pain!)

I assumed they were having problems down to having a beta installed
originally or somesuch, but suddenly all our own code is now generating
these control prefixes. Trouble is we can't work out how/what caused the
change!

Does anyone know what determines that these prefixes get generated. They
make life more tiresome for client-side scripting. Is it the number of
controls in a project or some setting somewhere?

Thanks for any responses,
Ian

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to