473,516 Members | 2,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

panel inserted unwanted div tag

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&amp;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&amp;g=0' CLASS="secondNav">

<U>C Amer/Haiti</U>:</A></li>
</div>

--
_____
DC G
Nov 18 '05 #1
3 1468
Try using a PlaceHolder instead of a Panel.

Greg

"DC Gringo" <dc******@visiontechnology.net> wrote in message
news:OG**************@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&amp;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&amp;g=0' CLASS="secondNav">

<U>C Amer/Haiti</U>:</A></li>
</div>

--
_____
DC G

Nov 18 '05 #2
What else do you expect Asp:Panel to be rendered as?

Eliyahu

"DC Gringo" <dc******@visiontechnology.net> wrote in message
news:OG**************@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&amp;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&amp;g=0' CLASS="secondNav">

<U>C Amer/Haiti</U>:</A></li>
</div>

--
_____
DC G

Nov 18 '05 #3
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" <dc******@visiontechnology.net> escribió en el mensaje news:OG**************@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&amp;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&amp;g=0' CLASS="secondNav">

<U>C Amer/Haiti</U>:</A></li>
</div>

--
_____
DC G

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5298
by: theComputer7 | last post by:
I cut down the code to make this half way understandable... I have read Data Grid girls caution about over use of dynamic controls. I truly believe what I am doing requires dynamically inserted user controls. Worse I'm trying to add dynamic user controls from within a repeater loop (looping through attributes)... I bind to a function in...
1
1694
by: Harry | last post by:
Hi, Slight problem in asp.net. (c#) I have a asp:panel page set up, with two different panels both of which contain a form. On the second page the user presses submit and the form details are automatically entered into a SQL database. Problem is, when the user presses the next button on the first panel,
0
985
by: simon | last post by:
I have dataGrid with 8 columns. If the user clicks on first column then I set dataGrid.visible=false and show panel with data of the current item. When user clicks the ok on the panel, the datat is updated, panel is hidden and dataGrid is shown again. When user clicks on the button for Insert th new item, then dataGrid.visible0 false and...
11
1882
by: BoloBaby | last post by:
OK, check this out... I have a form with a panel control and button on it (outside the panel control). I have two event handlers - one handles the click event of the button on the form. The other handles a custom "CardInserted" event for a class I wrote that watches for smart cards to be inserted into an attached smart card reader.
4
11664
by: Aaron Smith | last post by:
I have a panel that I have in the paint event to draw a Raised 3d border around it.. The problem is, if a msgbox is popped up or a tooltip is displayed, it leaves lines on the panel. I've tried invalidate after the msgbox to no avail... Here is the event: Private Sub Panel2_Paint(ByVal sender As Object, ByVal e As...
16
2773
by: lovecreatesbeauty | last post by:
/* When should we worry about the unwanted chars in input stream? Can we predicate this kind of behavior and prevent it before debugging and testing? What's the guideline for dealing with it? As shown below line #21, I should remove the unwanted characters in input stream there at that time. Do I miss some other possible errors in i/o...
3
2537
by: citronelu | last post by:
Hi, I'm new to wxpython, and the following code is my first serious attempt: #~ start code import wx class MyPanel(wx.Panel):
5
2840
by: ChrisC | last post by:
Hello all, I'm a bit of an ASP.NET / C# noob so bear with me. In my codebhind I have taken some data and based on that data I have some javascript to post back to my page. The javascript is in the string variable "BottomCode". I need to post the contents of the BottomCode file inside a particular Panel on my page but I'm not sure how to...
0
2198
by: chmagal | last post by:
Hello everybody! I am trying to create a UserControl that act as a (Expandable Panel). I created a UserControl (LGradientPanel) with two panels in it: LCaptionPanel and the LInnerPanel. The last one should "hold" the controls I will add to the UserControl. The LCaptionPanel will have a gradient fill and the text (caption) of the panel. No...
0
7276
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7408
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7581
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7142
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4773
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3267
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3259
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.