Home / Software / Tips and Tricks / How to bind the ASP.NET Iframe to a URL from Code behind?

How to bind the ASP.NET Iframe to a URL from Code behind?

Updated:  04/13/2012 13:04 PM
Author:  Shiju Mathews

Status:    Resolved.


From the UI(aspx) page we can set the property ‘url’ to a web page. But there is no direct property to link the ‘url’ from the code behind page. But you can add an ‘src’ attribute and set the url.

Aspx page


Code behind

where ‘LetterUrl’ is a variable has the value of the source url.