Windows phone Web控件格式异常



我已经使用此代码一段时间了,在我的windowsphone 7应用程序im构建中工作得很好。然而,突然间它停止了工作,并给了我一个格式异常错误?自从上次代码完美运行以来,我没有对它做任何更改,我做错了什么?

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); 

最新更新