I want to display an iframe in a .aspx page, and the iframes source should be the same page.
I need to use a relative uri.
What value should I give the ‘src’ attribute?
I realise this is a little unusual – the page will be displayed in different states depending on parameters passed in, so the iframe won’t be displayed within itself.
The literal relative path should work. IE: MyPage.aspx
Here is an ASP.NET Example…
Seemed to work fine for me with the following…
Markup:
Code Behind: