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:
Post a Comment