I think you'd have to create a derived class and override the TagKey/TagName
properties. I'm not sure though, if the Panel control is protected from
derivation. If so you'd have to create your own control derived from
WebControl. (I recommend that anyway if you really have to change the tag)
Anyway, MS has done a formidable job on making the Panel tag cross browser
compatible. This is the reason it outputs different HTML for IE and Firefox.
You will probably get a lot of weird behavior if you start messing around
with it. For instance, since Firefox gets a table, the other methods
implemented for the Panel control probably uses a lot of table specific
attributes when requested with FF - this will give erroneous output if you
change the key for the tag.
My recommendation would be to find an alternative way to handle the control
for FF users.
HTH,
Lars-Erik
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.