Render Iframes dynamically inside SharePoint Application Pages

There is a requirement to render the publically available web site content inside SharePoint application pages, dynamically based on arbitrary condition. This can be done in two ways. The first option is to use the page viewer web part and dynamically set the url of page viewer using a user control tied to the master page. The second option is to design an application page and render the external content using IFrames. The option of application pages + Iframes is better compared to dynamic page viewer web part way, considering many pros and cons.

The best way to achieve this to have an ASP.NETuser control that hosts the IFrame. Then host the entire user control inside the application page. Because user control gives the more control and flexibility to manipulate the properties of Iframes at run-time, than finding the logical event of ASP.NET page life-cycle and accomplish this task.

.  On the page load of user control, add the src property of the user control

 protected void Page_Load(object sender, EventArgs e)
            this.IFrame1.Attributes.Add("src", ThirdPartyUrl);

 Subscribe to my post

SharePoint Conference 2009 Sessions

The initial list of sessions for SharePoint Conference 2009 to be held in October 2006 at LasVegas is announced. Here is the initial list of session and topics :-

  1. SharePoint 2010 Overview and What’s New
  2. Upgrading to SharePoint 2010
  3. SharePoint 2010 Capacity and Performance Planning
  4. SharePoint 2010 Security and Identity Management: What’s New
  5. Visual Studio 2010 Tools for Office Development
  6. SharePoint 2010 Ribbon, ECMAScript and Dialog Framework Development
  7. Developing with REST and LINQ in SharePoint 2010
  8. Upgrading SharePoint Server 2007 Code to SharePoint 2010
  9. Building Composite Applications with the Microsoft Application Platform
  10. What’s New in Business Connectivity Services (The Business Data Catalog Evolves!)
  11. FAST Search for SharePoint – Capabilities Deep Dive
  12. Advanced Dashboard Creation with Performance Point Services for SharePoint 2010
  13. Overview of Visio and Visio Services for SharePoint 2010
  14. SharePoint 2010 Web Content Management Deep-Dive

We may get more updated sessions down the line.