[英]Windows phone webcontrol format exception
我一直在使用此代碼一段時間,以在我的Windows Phone 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);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.