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

Validating the user

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.

Tags: How to bind the ASP.NET Iframe to a URL from Code behind?
Updated on: December 2025