473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

WebControl using SPAN tag instead of DIV tags

I just wrote a composite user control.
It is composed of 2 panels (the idea is only one panel is visible at a
time), and each panel has various simple control.
When rendererd it's rendered using <div> (I suspect this comes from the
Panel), is there anyway to use SPAN instead?

--
I have taken a vow of poverty. If you want to really piss me off, send me
money.
Jan 8 '06 #1
2 2405
I would suggest creating your own control, either user or server. Note,
however, that since a span is an inline tag, some controls will not render
properly within a span element.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Lloyd Dupont" <net.galador@ld> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
I just wrote a composite user control.
It is composed of 2 panels (the idea is only one panel is visible at a
time), and each panel has various simple control.
When rendererd it's rendered using <div> (I suspect this comes from the
Panel), is there anyway to use SPAN instead?

Jan 8 '06 #2
I solve the problem very simply.
panel2 was containing only1 control, so I dumped it!

"Christopher Reed" <ca****@nospam.nospam> wrote in message
news:OS**************@TK2MSFTNGP09.phx.gbl...
I would suggest creating your own control, either user or server. Note,
however, that since a span is an inline tag, some controls will not render
properly within a span element.
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"Lloyd Dupont" <net.galador@ld> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
I just wrote a composite user control.
It is composed of 2 panels (the idea is only one panel is visible at a
time), and each panel has various simple control.
When rendererd it's rendered using <div> (I suspect this comes from the
Panel), is there anyway to use SPAN instead?


Jan 8 '06 #3

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

Similar topics

9
by: David Henderson | last post by:
Hi There... I'm struggling with a problem: I have a string (coming from a rich text editor) which contains a variety of span tags that need to be replaced with corresponding formatting tags....
5
by: Kathryn | last post by:
Good morning! I am having a problem with a span. I have items, of which I only want to show the first X characters on the screen. If the user prints the page, I want the entire item to print....
1
by: Jim M | last post by:
I can render most all html tags by creating webcontrols in code behind. Is there a span or div web control? Thanks in advance.
9
by: developer | last post by:
Does anyone know what is the way IE treats span tags(<span>) and table tags(<tr>, <td>)? Should the <span> tag be encolsed in tds and trs if it placed with other elements that are in a table? Can...
1
by: developer | last post by:
Does anyone know what is the way IE treats span tags(<span>) and table tags(<tr>, <td>)? Should the <span> tag be encolsed in tds and trs if it placed with other elements that are in a table? Can...
12
by: Charlie King | last post by:
As I understand it, the use of FIR* to replace heading tags with images in visually enabled CSS browsers is now frowned upon on the basis that some screen readers will *nor* read back text that is...
3
by: Michellevt | last post by:
Hi I am working on a project (for college) and wondered if anyone can help me with my problem. In the project we are not allowed to make use of any "style" attributes but "class" attributes...
3
by: nathanwb | last post by:
I have the following php code, at the top I am pulling a piece of data from a query and I echo the results with no problem, I am using Ajax with this page as well and further down the page when I...
2
by: cloftis | last post by:
Using VS2003, VB and MSHTML, Using an HTMLSpanElement I want to enumerate the attributes of a SPAN tag. 1 'For testing sake 2 Dim strMarkup as String = "<span attr1='somevalue'...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.