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
"Pietro" <pi****@uol.com.br> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
The asp:Panel tag renders a DIV in IE and TABLE in Firefox, where can i
configure it to render DIV in both.
Thanks
Pietro