Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I add a table at run-time to an aspx form

Status
Not open for further replies.

yongbum

Programmer
Dec 15, 2005
48
IL
Hi,
I have a web form and I want to dynamicaly generate the following at run time:
<Table><TR> ect
<PRE>
text text
text text
</PRE>
</Table> ect

I think I need to use a PlaceHolder control, but I don't know how to add the above HTML tags and text. Any help (and code snippets) appriciated.

Thanks
 
Either use a Literal Control and set the Text property, or use a HTMLTable and build the rows dynamically.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Please can you elaborate on "build the rows dynamically. "
with a bit of code if possible - thanks
 
Well, if you create a new instance of a HTMLTable e.g.
Code:
        Dim tb As New HtmlTable
Then, you can just use the Rows.Add method of the table you've just created to dynamically add each row.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Thanks,

I also have <pre> and othere formating tags and
CharSet iso-8859-8 that I need to include how do I include these formating tags ?
Your help is really appriciated, I've been tearing my hair out for many long nights - this all worked ok when I was just using straight html - but within the framework of asp.net, these simple little things are much more complicated - for me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top