Click here to Skip to main content
15,897,519 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir,

if i enter any url or comon website in textbox (exe. www.google.com) n click on button so in frame i want to open that website. by using webcontrol so please help me.

in my webpage if i create 1 textbox n type the google website n click on button so in my frame i want to be open google site.

for any type of solution. thank you
Posted
Updated 26-Feb-12 20:00pm
v2

<iframe runat="server" frameborder="0" marginheight="0" marginwidth="0<br" mode="hold" />name=login scrolling=no src="https://localhost/default.aspx"
width=150 height=97 id=myFrame>

in button click event 
write the bellow code
myFrame.Src=txtBox.Text;
 
Share this answer
 
You really dont need to use a web control to open a link in ASP.Net.

Just open the link in the existing browser itself - a new tab or popup will open based on your browser settings.
See this[^] for an example.
 
Share this answer
 
Comments
maddysagar 27-Feb-12 1:59am    
sir but i want to try this so please if any solution then tell me
in my webpage if i create 1 textbox n type the google website n click on button so in my frame i want to be open google site.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900