摘要:
从XML读取数据,实现二级导航功能修改XML的节点可以对导航条进行扩展,效果部分类似http://silverlight.net/首页导航XML内容如下[代码]效果图项目结构图代码下载 阅读全文
摘要:
1.扩展方法必须在非泛型静态类中定义2.扩展方法必须是静态的3.不能在静态类中声明实例成员public static class PubMethod { public static string GetIP(this Controller ctrl) { string ip; if (ctrl.HttpContext.Request.ServerVariables["HTTP_VIA"] != n... 阅读全文
2009年5月21日 #
摘要:
//View页面代码如下[代码][代码] 阅读全文
摘要:
public class SubColor { public static Color FromArgb(string color) { int[] a =new int[4]; int[] b =new int[8]; string rg1 = "#[a-fA-F0-9]{8}"; Regex r1 = new Regex(rg1); if (r1.IsMatch(color)) { for (... 阅读全文
2009年5月20日 #
摘要:
异常如下:System.Data.Services.Client.DataServiceRequestException: 处理此请求时出错。 ---> System.Data.Services.Client.DataServiceClientException:silverlight DataService调用出错,这种情况一般都是权限不够在DataService中public stati... 阅读全文