02 2013 档案

摘要:1.下面是我获取实体集合的方法 , public IList<Model.Employee> GetList(int pageindex, string name, out int recCount) { var parameters = new { EmpName = name, PageIndex = 1, PageSize = 15, TotalRecords = 0 }; ... 阅读全文
posted @ 2013-02-17 22:27 tinaleft 阅读(315) 评论(1) 推荐(0)
摘要:1. 如果自动滚动到页面中的某区域jQuery.fn.autoscroll = function(selector) { $('html,body').animate( {scrollTop: $(selector).offset().top}, 500 }; } //然后像这样来滚动到你希望去到的class/area上。 $('.area_name').autoscroll(); 2. Until<ul> <li>苹果</li> <li>香蕉</li> <li>葡萄</li> 阅读全文
posted @ 2013-02-10 13:31 tinaleft 阅读(163) 评论(0) 推荐(0)
摘要:queryPage.aspx:private void btnEnter_Click(object sender, System.EventArgs e){ Server.Transfer("ResultPage.aspx");}ResultPage.aspx:public class ResultPage : System.Web.UI.Page{ private void Page_Load(object sender, System.EventArgs e) { //转换一下即可获得前一页面中输入的数据 QueryPage queryPage = ( QueryPag 阅读全文
posted @ 2013-02-09 20:41 tinaleft 阅读(401) 评论(0) 推荐(0)
摘要:Global.asax代码: void Application_Error(object sender, EventArgs e) { // 在出现未处理的错误时运行的代码 Exception objErr = Server.GetLastError().GetBaseException(); string error = string.Empty; string errortime = string.Empty; string erroraddr = string.Empty; string errorinfo = string.Empty; string errorsource = str 阅读全文
posted @ 2013-02-09 19:13 tinaleft 阅读(190) 评论(0) 推荐(0)
摘要:1 /// <summary> 2 /// 图片防盗链 3 /// </summary> 4 public class ImgHandler : IHttpHandler 5 { 6 const string errImg = "/Content/daolian.jpg"; 7 public void ProcessRequest(HttpContext context) 8 { 9 // 获取文件服务器端物理路径10 string FileNam... 阅读全文
posted @ 2013-02-09 17:10 tinaleft 阅读(246) 评论(0) 推荐(0)
摘要:1 <script language="javascript" type="text/javascript"> 2 $(function () { 3 var guid = '<%=Request["guid"] %>'; 4 var type = '<%=Request["type"] %>'; 5 if (guid == null || guid == "") { 6 guid = newGuid(); 7 } 8 if . 阅读全文
posted @ 2013-02-08 14:17 tinaleft 阅读(368) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2013-02-08 11:49 tinaleft 阅读(157) 评论(0) 推荐(0)