Reputation: 558
I have a webView in xamarin called Browser and I should give it a URL.
string ciao = "pizza";
Browser.Source = "www." + pizza + ".it";
I have this code, how can I compose the URL?
Upvotes: 1
Views: 114
Reputation: 2708
Use the Uri
class.
string ciao = "pizza";
string it = "it";
Browser.Source = new Uri (string.Format ("http://www.{0}.{1}",ciao,it));
Upvotes: 2