Solved

Remove SPAN tag when outputting a Web Label

Posted on 2004-03-26
1
729 Views
Last Modified: 2007-12-19
I have a label on a Web Form called lblTest. I assign a value of "This is a Test" to the text property in the PageLoad event. When I load the page, it displays the data in a span tag like this:

<span id="menuSettings_lblTest">This is a Test</span>

When all I want is the text.  Any ideas on suppressing the span tag?

Thanks in advance!
0
Comment
Question by:krewson
1 Comment
 
LVL 1

Accepted Solution

by:
Webtologist earned 500 total points
ID: 10693855
Use a literal control instead.  That renders as text only, no extra tags
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now