473,325 Members | 2,816 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,325 software developers and data experts.

Render Asp.Net Label

Hello,

I added an Asp.Net Label to a web page.

Is there a way to make the Label to be rendered as a Div instead of a
Span tag?

Thanks,

Miguel

Jan 4 '07 #1
1 1126
To put it simply, no. If you want a div, add a Panel.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"shapper" <md*****@gmail.comwrote in message
news:11*********************@i15g2000cwa.googlegro ups.com...
Hello,

I added an Asp.Net Label to a web page.

Is there a way to make the Label to be rendered as a Div instead of a
Span tag?

Thanks,

Miguel

Jan 4 '07 #2

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

Similar topics

6
by: AbeR | last post by:
I'm an intermediate/novice (I've probably developed a half dozen ASP.NET apps at this point) ASP.NET C# developer at this point and am totally strumped by a client's setup. I am developing this...
4
by: CSDunn | last post by:
Hello, I am trying to help a co-worker of mine with a C# problem. The following code will not render at all in the IE 5.5 browser we are using: ...
0
by: Frank | last post by:
Hi all, I want to derive a class from DataGrid so that I can have a label on the top. But when I tried to add the control to my form, I got an error "Specified cast is not valid" on the line:...
6
by: Tarren | last post by:
Hi: I have an aspx page that takes a dataset, makes the datagrid, and displays it. The new thing I have to do is take this same output and send it as an email. Is there an easy way to do...
3
by: Jason Dean | last post by:
Hello, I have a simple asp:label control that I want to write some complicated HTML to. Currently I have this code and it works fine: myLable.Text = "<p>this is my text</p>" Bust as my...
2
by: KatB | last post by:
Hoping I can explain what I need... I have a web control within an aspx page. I need to store, edit and retrieve tagged HTML in the DB (which I can do), then render that HTML in a control (label...
0
by: Graham | last post by:
Is there a known bug with the CheckBox control? I have subclassed the control and I am trying to add an onclick attribute in the code behind. I've tried putting the Attributes.Add in the Page_Load,...
1
by: Hongbo | last post by:
Hi, I have a mobile form: === <body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm"> <mobile:Form id=Form1 runat="server"> <mobile:label runat="server" id="lblT" /> </mobile:Form>...
5
by: Piotr Strycharz | last post by:
Hi I want to render a page in memory. That is (pseudo-code): Page aPage = new Page(); LiteralControl lc = new LiteralControl("<form runat=server><asp:Label id=label Runat=server/>...");...
1
by: Urs | last post by:
Hi the user control below renders OK when added in the designer. Why does it NOT render when added programmatically? Do I have to instruct the control somehow to render, or do I miss something?...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.