1
Answer

Access IFrame in C#

Bhaves

Bhaves

16y
12.4k
1

Im reworking a page that was done in javascript.  In one of the java scripts there is a call like this which sets the source of an IFrame:

parent.document.getElementById('iFrameAdminToolControl').src="whatever.ascx"

How would I access that same IFrame from c# code behind page?

Answers (1)
0
James Tomar
8 23.2k 8.9m 16y
make the IFrame runat="server" and you will be able to access it in the codebehind