Code Bank: IFrame.zip

File Name: IFrame.zip
File Size: 36,035 bytes
Downloaded: 527 times
Posted by: asktech
Date Posted: Wednesday, April 11, 2007 (CST)
Download File: Click here to download this file

Brief Description
Literal Control to add IFrame and change the Link dynamically

Full Description

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


Ratings
 

Add Your Comment

Ferotech Solution Services Inc.