Iframe Vs Dynamiclly load web user controls

Posted by kevin on Stack Overflow See other posts from Stack Overflow or by kevin
Published on 2010-04-16T05:01:50Z Indexed on 2010/04/16 5:03 UTC
Read the original article Hit count: 318

Filed under:
|
|

I need some advice on technique to perform page redirect in asp.net. Which one is more recommended to use in asp.net?

  1. Dynamically changed the src of the Iframe to difference aspx.

    Dim frame As HtmlControl = CType(Me.FindControl("frameMain"), HtmlControl)

    frame.Attributes("src") = "page1.aspx"

  2. Dynamically load web user controls to an asp:panel.

    panelMain.Controls.Clear()

    panelMain.Controls.Add(LoadControl("WebControl/page1.ascx"))

    (convert all aspx page to web user controls)

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-ajax