473,387 Members | 3,750 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,387 software developers and data experts.

Load existing html into table cell

Hi all

How can I load an existing html file into a table cell for display?

Setting the TableCell.Text to an existing web file path only displays
the path of the file, but not the file itself.

System.Web.UI.WebControls.TableCell c =
(TableCell)Page.FindControl(sMainCell);

c.Text = ".\\OrigSite\\index.htm";
displays .\\OrigSite\\index.htm
on the page

thanks
jeff
Feb 6 '07 #1
2 5662
Hello Jeff,

Why not to add the content of the file directly to .Text property?!

Maybe you need to use <includehtml tag?!

JUHow can I load an existing html file into a table cell for display?
JU>
JUSetting the TableCell.Text to an existing web file path only
JUdisplays the path of the file, but not the file itself.
JU>
JUSystem.Web.UI.WebControls.TableCell c =
JU(TableCell)Page.FindControl(sMainCell);
JUc.Text = ".\\OrigSite\\index.htm";
JU>
JUdisplays .\\OrigSite\\index.htm
JUon the page

---
WBR, Michael Nemtsev [C# MVP]. Blog: http://spaces.live.com/laflour
team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Feb 6 '07 #2
Michael
I am trying to add the html to the text property of the cell, but I
need to do it dynamically, at run time. The desired end result it to
read the filename from a database and then plug it into the table on
the fly.

It would seem to me that the html file would have to be read in and
then the stream of text somehow placed into the cell. I can not figure
out how to do this.

Not sure what is an include tag in html. Dont see any reference to it
in my references. I did try an "embed" tag, but that doesnt work.

Any othe ideas?
Thanks
Jeff
On Tue, 6 Feb 2007 10:39:01 +0000 (UTC), Michael Nemtsev
<ne*****@msn.comwrote:
>Hello Jeff,

Why not to add the content of the file directly to .Text property?!

Maybe you need to use <includehtml tag?!

JUHow can I load an existing html file into a table cell for display?
JU>
JUSetting the TableCell.Text to an existing web file path only
JUdisplays the path of the file, but not the file itself.
JU>
JUSystem.Web.UI.WebControls.TableCell c =
JU(TableCell)Page.FindControl(sMainCell);
JUc.Text = ".\\OrigSite\\index.htm";
JU>
JUdisplays .\\OrigSite\\index.htm
JUon the page

---
WBR, Michael Nemtsev [C# MVP]. Blog: http://spaces.live.com/laflour
team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
Feb 8 '07 #3

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

Similar topics

1
by: anonieko | last post by:
This example applies to javascript, table, cells, rows > > How do you access rows and columns of a HTML table? > > > <script language="javascript"> alert('start');
1
by: Uthuras | last post by:
Greetings, Machine : Pentium IV Os Windows 2000 server Product : DB2 UDB Release : 7.2 We are fail to load the following data file format into db2 database table that has long varchar...
0
by: Subba Rao via DotNetMonster.com | last post by:
---------------------------HTML---------------------------------------- <html> <head> <title>:: DHTML Table Demo ::</title> <script langauge="javascript" src="InterchangeRows.js"></script>...
5
by: hmiller | last post by:
Hey there folks: I have been trying to get this work for about a week now. I'm new to VBA... I am trying to transfer a populated table in Access to an existing, but blank, Excel worksheet. I...
3
by: Phil | last post by:
I'm trying to make a 4 x 13 table in html, but it won't format correctly... maybe someone can see what I'm doing wrong. <table border="1"> <tr> <td colspan="3" rowspan="5">Cell 1, 1</td> <td...
4
by: [Jongware] | last post by:
I'm a bit stumped about this request on an Adobe forum. Apparently, exporting a table from their flagship InDesign to XML produces the following output for a table (only first 2 rows listed; after...
3
by: Ravi Kondamuru | last post by:
Hi, I am using a table to create a layout. It basically splits the browser into two. In one of the cell's I would like to load a webpage. How can I do that? Do I have to use something else to create...
2
by: Albin | last post by:
Hi, I have a html page where in the table spans for two pages the first page's last row doesn end properly and the 2nd page's first row also isnt proper.The code i use is given below,the no of...
8
by: James Kimble | last post by:
Yeah I'm sure this is a stupid question. I've got a javascript source file with functions (creates a bar graph) I want to call from inside an html table cell so that the graph appears in the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.