Enumerate HtmlGenericControls?

X

xenophon

I have a div area in my ASP.NET page template with this HTML in it:

<iframe id="ifmContent" name="ifmContent" src="about:blank"
frameborder="0"></iframe>

I beleive this iframe is an HtmlGenericControl, and in my C#
code-behind I am trying to enumerate all HtmlGenericControls in the
div tag, but nothign is working. Can anyone show a C# sample on what
I should do.
Thanks.
 
K

Karl Seguin

This isn't a server control (no runat="server") so you can't access it

if it was, you could access it directly via it's id

karl
 

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
473,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top