473,387 Members | 1,549 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,387 software developers and data experts.

How to remove a Span tag from the ASP.NET design page .

I have a problem whenever I design a asp.net page, insert any control ,a Span tag or sometimes div tag appear on the design page which is very disturbing for me in the designing . Please anyone help me to remove them from the designing page.I have already reinstall the .NET but there is no effect at all.
That span tag appear just before the control with yellow background. and same thing with div tag.
Feb 4 '08 #1
4 2105
hi if u got any solution for that question i.e. how to remove <span> tag from an application at design time,plz send me the answer as soon as possible.
eagerly waiting for ur reply.
thanks in advance
sneha satpathy
Mar 17 '08 #2
i v also the same problem.if u got any solution plz forward me.
waiting for your reply and thanks in advance
Mar 17 '08 #3
kenobewan
4,871 Expert 4TB
I have a problem whenever I design a asp.net page, insert any control ,a Span tag or sometimes div tag appear on the design page which is very disturbing for me in the designing . Please anyone help me to remove them from the designing page.I have already reinstall the .NET but there is no effect at all.
That span tag appear just before the control with yellow background. and same thing with div tag.
What designer are you using? That is often the trade off with designing in the design vs code mode. Try writing your own code rather than letting the designer do it for you. HTH.
Mar 17 '08 #4
Frinavale
9,735 Expert Mod 8TB
In order for web pages to be rendered in the browser ASP.NET converts your .NET controls into HTML that "act" like the .NET controls.

For instance, a .NET Label object is generated as a <span>, and a .NET Panel is generated as a <div>.

If you are simply displaying text and do not need to use these controls you should use the .NET Localize object. A Localize object simply displays text where ever the control is placed.

Please note that you can apply CSS to Labels (<span>s) and Panels(<divs>); whereas you cannot apply CSS to Localize objects.

-Frinny
Mar 17 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Mike | last post by:
I´ve got a number of SPAN elements named "mySpan1", "mySpan2", "mySpan3" etc, and want to set their "style.display" to "inline". This works (only needs to work on IE5.5+): for (var x = 1; x <...
14
by: j1c | last post by:
How can I remove the content in between tags? I have a page that has several custom tags: <!--tag:1--> Content 1 <!--/tag:1--> <br> <!--tag:2--> Content 2 <!--/tag:2--> <br> <!--tag:3--> Content 3...
9
by: Ken | last post by:
I am trying to create one image using JavaScript; then later in the script remove the image - not just remove the src. The following creates the image, but I have been unable to remove it. How...
12
by: Oberon | last post by:
I have a large HTML document. It has hundreds of <span>s which have no attributes so these <span>s are redundant. How can I remove these tags automatically? The document also has <span>s with...
6
by: Chuck | last post by:
I have a report with three columns, accross then down, and two groups. Currently the group headers are only one column wide and appear in the left hand column. How can I make the group header be...
2
by: Don Wash | last post by:
Hi There! I'm creating my website with ASP.NET + XHTML, which means I will strictly adhere the XHTML standards for my web page output. I use Panel or PlaceHolder WebControls to place...
2
by: mrjoka | last post by:
hi experts, i'm developing a page in ASP but i'm doing also some javascript insode the page. i'm creating a frame and i want to loop this frame with a duplicateloop function so the form will be...
11
by: David | last post by:
Hi All, I am working on a script that is theoreticaly simple but I can not get it to work completely. I am dealing with a page spit out by .NET that leaves empty tags in the markup. I need a...
3
by: Allen Chen [MSFT] | last post by:
Hi Richard, Quote from Richard================================================== However I also want to be able to remove the panes. I have tried to include this, but find that when I first...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.