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

Loading in HTML onto a page

Bob
I have a requirement to display multi formated Text within a Cell of a table

We currently use a label but the <span> command introduced automatically into the HTML at run time results in an invalid html page

e
<TD vAlign="top" width="450" height="200"><asp:label id="lblContent" runat="server" Width="450px" Height="320px"></asp:label></TD

become

<TD vAlign="top" width="450" height="200"><span id="lblContent" style="height:320px;width:450px;"><H3>Title<H3><P> <B>Detailed Description</B></P><P>This is another problem to be solved</P></span></TD

Because of the header elements this is invalid. Any Suggestions?
Nov 18 '05 #1
2 1336
Hi, Bob,

Try <asp:literal> instead of <asp:label>. It will render the content
directly in the parent control's inner html.

Hope this helps
Martin
"Bob" <an*******@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
I have a requirement to display multi formated Text within a Cell of a table.
We currently use a label but the <span> command introduced automatically into the HTML at run time results in an invalid html page.
eg
<TD vAlign="top" width="450" height="200"><asp:label id="lblContent" runat="server" Width="450px" Height="320px"></asp:label></TD>
becomes

<TD vAlign="top" width="450" height="200"><span id="lblContent" style="height:320px;width:450px;"><H3>Title<H3><P> <B>Detailed
Description</B></P><P>This is another problem to be solved</P></span></TD>
Because of the header elements this is invalid. Any Suggestions?

Nov 18 '05 #2
You could use a LiteralControl instead of a label. The literal will only
display the content that you put in it.

tomledk :)

"Bob" <an*******@discussions.microsoft.com> wrote in message
news:93**********************************@microsof t.com...
I have a requirement to display multi formated Text within a Cell of a table.
We currently use a label but the <span> command introduced automatically into the HTML at run time results in an invalid html page.
eg
<TD vAlign="top" width="450" height="200"><asp:label id="lblContent" runat="server" Width="450px" Height="320px"></asp:label></TD>
becomes

<TD vAlign="top" width="450" height="200"><span id="lblContent" style="height:320px;width:450px;"><H3>Title<H3><P> <B>Detailed
Description</B></P><P>This is another problem to be solved</P></span></TD>
Because of the header elements this is invalid. Any Suggestions?

Nov 18 '05 #3

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

Similar topics

6
by: Curious George | last post by:
I have a page that takes about 10 seconds to load the first time it is run. I would like to first display a little animated gif telling the user that the page is loading. How do I do this with...
2
by: Bob | last post by:
I have a requirement to display multi formated Text within a Cell of a table We currently use a label but the <span> command introduced automatically into the HTML at run time results in an...
3
by: markeboy | last post by:
I am wanting to control when a page is loaded using a separate class to manage when and how it should be loade My current implementation needs to set a property of the page programatically...
1
by: Angel | last post by:
Is there a way to display a message using an aspx page with controls on it that the data is loading for the page without having to display one html page then reloading the aspx page. in other words...
1
by: John Cosmas | last post by:
I've got a page which loads up a different user control into a placeholder control every time a button is clicked on the parent page. I use a statement like...
1
by: kanones | last post by:
Hi - I am seeing some performance degradation when I am loading a control dynamically onto a page with multiple other dynamical controls using Page.LoadControl versus dragging and dropping it...
1
by: Richard | last post by:
I have a table that is about 100 rows long and within that table I have tons of links. The table takes about 2 seconds to load. I think javascript might help somehow. The problem is that in...
13
eragon
by: eragon | last post by:
JavaScript Loading Mask Requirements: Little knowledge in JavaScript and some HTML. JavaScript enabled browser. Applications: Useful for all those pages that load slow, and in sections, so...
3
by: thetechgeek | last post by:
hey all, I'm a bit new to AJAX, and I was wondering how I could dynamically load content onto a page to prevent the user from having to reload the entire page, they'd just have to load the main...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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.