markup in asp:placeholder

J

jthornby

I need to add an indefinite number of controls to a form (to be determined at
run-time). According to what I've read, this means I need an asp:placeholder
control.

I can't find anything that tells me how to insert non-asp tags within the
markup the placeholder creates. Specifically, I want to place everything
within <table>, <tr> and <td> tags along with a few other things (like <div>
tags). Does anybody know how to do this?
 
J

Jan Peter Stotz

jthornby said:
I can't find anything that tells me how to insert non-asp tags within the
markup the placeholder creates.

You can use the HtmlGenericControl class:

Specifically, I want to place everything
within <table>, <tr> and <td> tags along with a few other things (like <div>
tags). Does anybody know how to do this?

Check the classes: HtmlTable, HtmlTableRow, HtmlTableCell and so on.
You can get an overview of alle basic html control classes on the .net
framework help page "HtmlContainerControl Hierarchy".

Jan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top