I have been using this code for a while working perfectly in my windows phone 7 app im constructing. However all of a sudden it stops working and gives me a format exception error? What i have i been doing wrong since i haven't change a bit in this code since it last worked perfectly?
String url = String.Format("http://www.bing.com/search?q={0}");
webBrowser1.Source = (new Uri(string.Format(url), UriKind.Absolute));
You use the String.Format
method but you don't specify any argument after the string.
I think you are trying to do something like
String url = String.Format("http://www.bing.com/search?q={0}", keyword);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.