473,325 Members | 2,792 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.

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 1335
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: 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
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.