摘要: public static string GetAbsoluteUrl(string strRelativePath) { if (string.IsNullOrEmpty(strRelativePath)) return strRelativePath; string strFullUrl; if (strRelativePath.StartsWith("http:", StringComparison.OrdinalIgnoreCase) || strR... 阅读全文
posted @ 2012-12-01 12:59 程序之魂 阅读(437) 评论(0) 推荐(0)
摘要: //得到指定路径的数据 public static string GetRequestUrl(string Path) { IsolatedStorageFile loadfile = IsolatedStorageFile.GetUserStoreForApplication(); IsolatedStorageFileStream stream = loadfile.OpenFile(Path, FileMode.OpenOrCreate, FileAccess.Read); StreamRead... 阅读全文
posted @ 2012-12-01 12:46 程序之魂 阅读(195) 评论(0) 推荐(0)
摘要: SilverLight C#程序之:读取并修改App.config文件1.向项目添加app.config文件: 右击项目名称,选择添加添加新建项,在出现的添加新项对话框中,选择添加应用程序配置文件;如果项目以前没有配置文件,则默认的文件名称为app.config,单击确定。出现在设计器视图中的app.config文件为: ? xmlversion=1.0encoding=utf-8 ? configuration / configuration 注意:在项目进行 1. 向项目添加app.config文件:右击项目名称,选择“添加”→“添加新建项”,在出现的“添加新项”对话框中,选择“添加应用. 阅读全文
posted @ 2012-12-01 11:09 程序之魂 阅读(307) 评论(0) 推荐(0)