HTML Data generated by Server.Controls

L

Lucky

hi guys!
i've got very interesting problem. it is like this.
is it possible to get HTML generated by the server control in code
behind?

i'm developing an asp.net web application where i need to fectch data
in HTML format. The data is rendered by the Data Repeater in Table
format on webpage.

is there any way i can get reder data of data repeater from itself? i
mean is there any method of anyway to get html data from HTML Control?
like GetHTML() or any properties or work around?

i tried with RenderControl() method but i failed.

the HTML Render Data generated by the Data Repeater is this :
<Table>
<tr>
<th>Col1</th>
<th>Col2</th>
<th>Col3</th>
</tr>
<tr>
<td>Col1</td>
<td>Col2</td>
<td>Col3</td>
</tr>
</Table>

i want this data in code behind.

if anyone know please let me know.
 

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

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top