12 2011 档案

摘要:方法一: string url_s = "http://www.baidu.com/ "; WebRequest request_o = WebRequest.Create(url_s); HttpWebResponse response_o = (HttpWebResponse)request_o.GetResponse(); Stream html_o = response_o.GetResponseStream(); StreamReader reader_o = new StreamReader(html_o, System.Text.Encoding.Defaul 阅读全文
posted @ 2011-12-29 16:59 一方一净土 阅读(339) 评论(0) 推荐(0)
摘要:一、Phone 7的导航方式分为Xaml页面导航和后台代码导航。 1.Xaml页面导航: 注意NavigateUri是控件属性,故没有此属性的控件只能通过后台代码导航。如:Button控件。 2.后台代码导航: 二、导航虚拟路径。 1.在App.Xaml <Application.Resources>添加UriMapper,指定虚拟路径的映射: 注意在App.Xaml页面需先引入命名空间: 2.在RootFrame注册UriMapper: 3.使用虚拟路径: 四、页面传值 页面传值的方式和web页面相似,都是QueryString方式。使用 Navigation... 阅读全文
posted @ 2011-12-05 20:34 一方一净土 阅读(384) 评论(0) 推荐(0)