Solved

Remove SPAN tag when outputting a Web Label

Posted on 2004-03-26
1
732 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

816 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

8 Experts available now in Live!

Get 1:1 Help Now