摘要: 发布到IIS中浏览网页为空白的情况第一个是因为没有安装Silverlight插件,不过这个会在浏览时提示下载。第二个情况是因为IIS6.0站点的MIME缺少XAP和XAML的配置,在Silverlight中需要使用xap、XAML文件类型,如果您想在IIS服务器上使用Silverlight程序,所以必须在IIS中注册xaml和xap的MIME文件类型。打开IIS->站点属性->HTTP头->MIME类型->新建:扩展名: .xap MIME类型:xapapplication/x-silverlight扩展名: .xaml MIME类型:application/xaml 阅读全文
posted @ 2011-11-03 21:21 ShenJH.NET 阅读(1052) 评论(1) 推荐(0) 编辑
摘要: DataTableToList 源码using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Reflection;namespace NCL.Data{ ///<summary> /// 实体转换辅助类 ///</summary> public class ModelConvertHelper<T> where T : new() { public static IList<T> ConvertToModel(Da 阅读全文
posted @ 2011-11-02 01:00 ShenJH.NET 阅读(218) 评论(0) 推荐(0) 编辑
摘要: $.cookie('the_cookie'); // 读取 cookie$.cookie('the_cookie', 'the_value'); // 存储 cookie$.cookie('the_cookie', 'the_value', { expires: 7 }); // 存储一个带7天期限的 cookie$.cookie('the_cookie', '', { expires: -1 }); // 删除 cookie 使用JQuery.Cookie还是很方便的,就是有些行为 阅读全文
posted @ 2011-11-01 23:56 ShenJH.NET 阅读(165) 评论(0) 推荐(0) 编辑
摘要: jquery.browsertype-1.0.js/** * jQuery插件开发方法二:第一步:插件定义 */ jQuery.myPlugin = { //获得浏览器的内核与外壳的类型和版本 Client: function (){ //浏览器内核类型(只有五种) var engine = { ie:0, webkit:0, gecko:0, opera:0, khtml:0 }; //浏览器外壳类型(国内常见的浏览器有:360浏览器、傲游、腾讯QQ\TT浏览器、世界之窗、彗星浏览器、绿色浏览器、传统... 阅读全文
posted @ 2011-11-01 23:40 ShenJH.NET 阅读(258) 评论(0) 推荐(0) 编辑
摘要: XMLHelper.csusing System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Xml;namespace PuTianCheng{ ///<summary> // 阅读全文
posted @ 2011-11-01 22:47 ShenJH.NET 阅读(161) 评论(0) 推荐(0) 编辑