Saturday, September 22, 2012

Calling asp.net page in IFRAME, from code behind file in C#


Step 1: Write the following code in aspx file:


<IFRAME id="frame1" src="http://www.google.com"  runat="server">
         


Step 2: Write the following code in Code Behind file:

 protected void Button1_Click(object sender, EventArgs e)
{
        frame1.Attributes.Add("src", "
http://www.live.com");
}

No comments: