.aspx
<table width="500">
<tr>
<td>
<iframe height="300" width="400" id="f1" src="" runat="server"></iframe>
</td>
</tr>
</table>
.cs
protected System.Web.UI.WebControls.Button Button2;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.HtmlControls.HtmlContainerControl f1;
private void Button1_Click(object sender, System.EventArgs e)
{
f1.Attributes["src"]="http://www.microsoft.com";
}
private void Button2_Click(object sender, System.EventArgs e)
{
f1.Attributes["src"]="http://www.google.com";
}
<table width="500">
<tr>
<td>
<iframe height="300" width="400" id="f1" src="" runat="server"></iframe>
</td>
</tr>
</table>
.cs
protected System.Web.UI.WebControls.Button Button2;
protected System.Web.UI.WebControls.Button Button1;
protected System.Web.UI.HtmlControls.HtmlContainerControl f1;
private void Button1_Click(object sender, System.EventArgs e)
{
f1.Attributes["src"]="http://www.microsoft.com";
}
private void Button2_Click(object sender, System.EventArgs e)
{
f1.Attributes["src"]="http://www.google.com";
}