473,387 Members | 1,535 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.

How can I create a HTMLTable class from and HTML string.

I have an XMLReader loaded the HTML from a web page. I want to pull a
Table out of this XMLReader and use it to create an
HTMLControls.HTMLTable object.
How can I do this?

I should be able to do it without parsing the sting and explicitly
creating every row and column. This should work as if the table was
created in the designer using the runat=server attribute.

Don

Feb 16 '06 #1
1 1330
DWS
I decided it was unethical but to get you rollin.

xmlreader.ReadToFollowing("table")
dim s as string
s = xmlreader.ReadElementContentAsString()
how you get s into a table is up to you. I think its the table inner html
and you can just set it mynewhtmltable.innerhtml = s you still have to walk
the attributes in node. table might be upper case too and the table node
would not be found. It might not even work at all.

Good Luck
DWS

"ch*********@hotmail.com" wrote:
I have an XMLReader loaded the HTML from a web page. I want to pull a
Table out of this XMLReader and use it to create an
HTMLControls.HTMLTable object.
How can I do this?

I should be able to do it without parsing the sting and explicitly
creating every row and column. This should work as if the table was
created in the designer using the runat=server attribute.

Don

Feb 16 '06 #2

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

Similar topics

3
by: Kiyomi | last post by:
Hello, I create a Table1 dynamically at run time, and at the same time, I would like to create LinkButton controls, also dynamically, and insert them into each line in my Table1. I would...
3
by: Ajay Desh | last post by:
Hi I am gettin error, if i try to find the top position of a table. Here is what i am doing.I have a HtmlTable (Table3 is the name/id) created.It has a position and a Top and Left co-ordinates...
2
by: suzy | last post by:
what is the difference between a htmltable control and a table control i know one is server control and the other is not, but when would each be used? also, how do you set the class of a html...
3
by: RSB | last post by:
Hi Every one Having tuff time creating web controls Dynamically. All i am trying to do is read a table and generate a list of ASP TEXT Box. So how do i create this Control dynamically and where...
2
by: Alfred Salton | last post by:
Can anyone show me how to set the css class of an HtmlTable control in code on the server? I can't find any indication that the css class is a property of the HtmlTable, HtmlTableRow and...
1
by: Leo | last post by:
I created a user control which is some text contained in a HtmlTable. I put this control into main form. I would like to have the ability to move this control around in the main form. I think one...
1
by: TRobran | last post by:
What I'm trying to do seems pretty straightforward so I must be missing something simple. Any help is greatly appreciated. On my page I have a DropDownList, a HtmlTable and a Button. Each row...
4
by: manwslohand | last post by:
Newbie here. Stupid question follows. Please be kind. I'm using c#.net 2003 and have a web form that uses a datagrid to display a list from a table. It's working okay but I want to expand the...
2
by: Scott McNair | last post by:
Hi all, I have a page that displays an order confirmation to the end-user whenever he places an order. On that order is a table generated using System.Web.UI.HtmlControls.HtmlTable. My company...
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: 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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.