471,071 Members | 949 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

C# / ASP.NET WEB How to disable span tags that accompany ASP.NET label

Hi Everyone,
I was wondering if anyone knew how to disable to span tags that appear in the place of ASP.NET labels ( <asp:Label ) after it has been processed by the server. I have a style sheet that I am trying to apply to a web page and these span tags are causing problems. I am using C# for my codebehind file. Any help is appreciated. Thanks
Jun 7 '07 #1
1 3837
7,872 Expert 4TB
ASP's Label tag is defined as a <span>
You can try ASP's Panel tag, which is defined as <div>

You can supply CSS classes to objects and override their base CSS settings. (along with various other ways)

Like if you have CSS that applies to all <SPAN> tags, you can then have more CSS that only applies to things you have determined to be "mythings"

so all <SPAN> could have green text, unless there is a <span class="mything"> in which case the text can be red.

I am sorry if that is confusing, but it's almost vacation time for me, yeah!
Jun 7 '07 #2

Post your reply

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

Similar topics

1 post views Thread by CLS | last post: by
9 posts views Thread by David Henderson | last post: by
2 posts views Thread by Kekec | last post: by
3 posts views Thread by headware | last post: by
5 posts views Thread by garthb | last post: by
5 posts views Thread by David Housman | last post: by
reply views Thread by leo001 | last post: by

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.