Click here to Skip to main content
15,920,896 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to put the url in the textbox

im using this code but it does not work

C#
//form load

webbrowser1.navigate(textbox1.text);


private void webBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
            textbox1.Text = e.Url.ToString();
}
Posted
Updated 24-Feb-12 15:41pm
v3

It is possible if you use JavaScript on your text element - such that:
XML
<input type="text" name="textbox1" id="textbox1" value="http://www.google.com" onmouseover="this.style.cursor='pointer' ;" onClick="window.open(this.value);"/>
 
Share this answer
 
Hi,

C#
TextBox1.Text=Request.Url.ToString();
 
Share this answer
 
Comments
newbie011292 24-Feb-12 21:14pm    
is the request is a variable?

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