C# Windows phone网络控制格式异常
我已经使用这段代码一段时间了,在我的WindowsPhone7应用程序中工作得很好。然而,它突然停止工作,并给我一个格式异常错误?自从这段代码上次完美运行以来,我没有对它做任何更改,我做错了什么C# Windows phone网络控制格式异常,c#,visual-studio-2010,windows-phone-7,C#,Visual Studio 2010,Windows Phone 7,我已经使用这段代码一段时间了,在我的WindowsPhone7应用程序中工作得很好。然而,它突然停止工作,并给我一个格式异常错误?自从这段代码上次完美运行以来,我没有对它做任何更改,我做错了什么 String url = String.Format("http://www.bing.com/search?q={0}"); webBrowser1.Source = (new Uri(string.Format(url), UriKind.Absolute)); 可以使用Stri
String url = String.Format("http://www.bing.com/search?q={0}");
webBrowser1.Source = (new Uri(string.Format(url), UriKind.Absolute));
可以使用
String.Format
方法,但不能在字符串后面指定任何参数
我想你是在尝试做类似的事情
String url = String.Format("http://www.bing.com/search?q={0}", keyword);