You can easily do this using Javascript on the client, instead of
server-side.
<iframe runat="server" frameBorder=0 marginHeight=0 marginWidth=0 name=login
scrolling=no src="https://localhost/default.asp" width=150 height=97
id=myFrame></iframe>
<input type="button" value="change url"
onclick="document.getElementById('myFrame').src='n ew url';"/>
-Kody
"Robson Carvalho Machado" <Ro*******************@discussions.microsoft.com >
wrote in message news:24**********************************@microsof t.com...
Dear friends,
I have an IFRAME that I want to change src url when clicking a button.
How can I change IFRAME src using button_click ?
<iframe runat="server" frameBorder=0 marginHeight=0 marginWidth=0
name=login scrolling=no src="https://localhost/default.asp"
width=150 height=97 id=myFrame></iframe>
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
myFrame.?????????= "https://localhost/login.asp"
End Sub