I disable that?
<ASP:PANEL ID="pnlCentralAmerica" RUNAT="server" >
<LI CLASS="rightSideBar">
<A HREF='/weather/?pageID=weatherDoc&g=<% = centralAmericaGcId
%>' CLASS="secondNav">
<% = centralAmericaDate %><U>C Amer/Haiti</U>:<% =
centralAmericaOneliner %></A>
</li>
</ASP:PANEL
Is outputting:
<div id="WeatherFront1_pnlCentralAmerica"
<LI CLASS="rightSideBar">
<A HREF='/weather/?pageID=weatherDoc&g=0' CLASS="secondNav"
<U>C Amer/Haiti</U>:</A></li>
</div
--
_____
DC GTry using a PlaceHolder instead of a Panel.
Greg
"DC Gringo" <dcgringo@.visiontechnology.net> wrote in message
news:OGeMC$WoEHA.3460@.TK2MSFTNGP10.phx.gbl...
>I have a panel that's inserting and unwanted <div> tag around it ...how can
> I disable that?
> <ASP:PANEL ID="pnlCentralAmerica" RUNAT="server" >
> <LI CLASS="rightSideBar">
> <A HREF='/weather/?pageID=weatherDoc&g=<% = centralAmericaGcId
> %>' CLASS="secondNav">
> <% = centralAmericaDate %><U>C Amer/Haiti</U>:<% =
> centralAmericaOneliner %></A>
> </li>
> </ASP:PANEL>
>
> Is outputting:
> <div id="WeatherFront1_pnlCentralAmerica">
> <LI CLASS="rightSideBar">
> <A HREF='/weather/?pageID=weatherDoc&g=0' CLASS="secondNav">
> <U>C Amer/Haiti</U>:</A></li>
> </div>
> --
> _____
> DC G
What else do you expect Asp:Panel to be rendered as?
Eliyahu
"DC Gringo" <dcgringo@.visiontechnology.net> wrote in message
news:OGeMC$WoEHA.3460@.TK2MSFTNGP10.phx.gbl...
> I have a panel that's inserting and unwanted <div> tag around it ...how
can
> I disable that?
> <ASP:PANEL ID="pnlCentralAmerica" RUNAT="server" >
> <LI CLASS="rightSideBar">
> <A HREF='/weather/?pageID=weatherDoc&g=<% = centralAmericaGcId
> %>' CLASS="secondNav">
> <% = centralAmericaDate %><U>C Amer/Haiti</U>:<% =
> centralAmericaOneliner %></A>
> </li>
> </ASP:PANEL>
>
> Is outputting:
> <div id="WeatherFront1_pnlCentralAmerica">
> <LI CLASS="rightSideBar">
> <A HREF='/weather/?pageID=weatherDoc&g=0' CLASS="secondNav">
> <U>C Amer/Haiti</U>:</A></li>
> </div>
> --
> _____
> DC G
Well it is actually the correct behaviour of an ASP.NET control, every ASP.NET control is meant to render HTML code to the client browser, in the case of a panel it is rendered as a DIV tag...no browser knows what an <ASP:PANEL ... RUNAT="server"> tag is, they only understand HTML (apart from scripts and other objects with the help of plugins, but HTML mainly).
Hope this helps
Alan Ferrandiz Langley [MCT]
"DC Gringo" <dcgringo@.visiontechnology.net> escribi en el mensaje news:OGeMC$WoEHA.3460@.TK2MSFTNGP10.phx.gbl...
> I have a panel that's inserting and unwanted <div> tag around it ...how can
> I disable that?
>
> <ASP:PANEL ID="pnlCentralAmerica" RUNAT="server" >
> <LI CLASS="rightSideBar">
> <A HREF='/weather/?pageID=weatherDoc&g=<% = centralAmericaGcId
> %>' CLASS="secondNav">
> <% = centralAmericaDate %><U>C Amer/Haiti</U>:<% =
> centralAmericaOneliner %></A>
> </li>
> </ASP:PANEL>
>
>
> Is outputting:
>
> <div id="WeatherFront1_pnlCentralAmerica">
>
> <LI CLASS="rightSideBar">
> <A HREF='/weather/?pageID=weatherDoc&g=0' CLASS="secondNav">
>
> <U>C Amer/Haiti</U>:</A></li>
> </div>
>
> --
> _____
> DC G
>
0 comments:
Post a Comment