Literal Control to add IFrame and change the Link dynamically
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If (Request.Params("strPage") Is Nothing) Or (Request.Params("strPage") = "") Then Me.litIframe.Text = "Error: page cannot be loaded as there no parameters." Else 'Attach IFrame to Literal Control and attach the 'Querysting param Page to the IFrame SRC litIframe.Text = "<IFRAME NAME='frmPage'" & _ " WIDTH='100%' HEIGHT='100%' SRC='" & Request.Params("strPage") & "' />" End If End Sub