摘要: 后台动态加载文件代码: //假设css文件:TestCss.css #region 动态加载css文件 public void AddCss() { HtmlGenericControl _CssFile = new HtmlGene... 阅读全文
posted @ 2015-09-21 16:36 懒慢D蜗牛 阅读(381) 评论(0) 推荐(0) 编辑
摘要: alert($(window).height()); //浏览器当前窗口可视区域高度 alert($(document).height()); //浏览器当前窗口文档的高度 alert($(document.body).height());//浏览器当前窗口文档body的高度 alert($(doc... 阅读全文
posted @ 2015-03-13 10:50 懒慢D蜗牛 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 Response.Redirect这个跳转页面的方法跳转的速度不快,因为它要走2个来回(2次postback),但他可以跳 转到任何页面,没有站点页面限制(即可以由雅虎跳到新浪),同时不能跳过登录保护。但速度慢是其最大缺陷!Redirect跳转机制:首先是发送一个http请求到客户端,通知需要跳... 阅读全文
posted @ 2015-03-07 17:41 懒慢D蜗牛 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 启动EXE string arg1 = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; string arg2 = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbb"; System.Diagnostic... 阅读全文
posted @ 2015-03-03 16:23 懒慢D蜗牛 阅读(1023) 评论(0) 推荐(0) 编辑
摘要: SQL Server 2008中,insert数据的时候返回自动编号的id,有三种方法实现SCOPE_IDENTITY、IDENT_CURRENT 和 @@IDENTITY,它们都返回插入到 IDENTITY 列中的值。IDENT_CURRENT :返回为任何会话和任何作用域中的特定表最后生成的标识... 阅读全文
posted @ 2015-01-28 15:14 懒慢D蜗牛 阅读(2853) 评论(0) 推荐(0) 编辑
摘要: 添加引用using NPOI.HSSF.UserModel;using NPOI.SS.UserModel;using System;using System.Collections.Generic;using System.Data;using System.IO;using System.Tex... 阅读全文
posted @ 2014-12-10 09:02 懒慢D蜗牛 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 1 static class Program 2 { 3 /// 4 /// 应用程序的主入口点。 5 /// 6 [STAThread] 7 static void Main() 8 ... 阅读全文
posted @ 2014-12-09 17:43 懒慢D蜗牛 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: 1 const int WM_SYSCOMMAND = 0x112; 2 //窗体关闭消息 3 const int SC_CLOSE = 0xf060; 4 //窗体最小化消息 5 const int SC_MINIMIZE = 0xf020; 6 //窗体最大化消息 7 const int SC... 阅读全文
posted @ 2014-12-09 11:33 懒慢D蜗牛 阅读(1547) 评论(0) 推荐(1) 编辑