Home c# From String in System.uri

From String in System.uri

Author

Date

Category

began working with the Internet in C # and there was such a question. How to make the WebBrowser read textbox.Text and recorded in the URL property?


Answer 1, Authority 100%

something like this:

try {
   WebBrowser.Navigate (New URI (textbox.text));
}
Catch (System.uriformateException E) {
}

Where in textbox.text lies something like http://hashcode.ru/ .


Answer 2, Authority 25%

var uri = new uri (textbox1.text);

URI on MSDN .

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions