2013年11月29日
摘要: if exists (select 1 from sysobjects where id = object_id('tb1') and type = 'U') drop table tb1gocreate table tb1 ( Id int null, name varchar(50) null, pId int nul... 阅读全文
posted @ 2013-11-29 17:55 朝着 阅读(456) 评论(0) 推荐(0) 编辑
摘要: if exists (select 1 from sysobjects where id = object_id('tb_Menu') and type = 'U') drop table tb_Menugo/*==============================================================*//* Table: tb_Menu *//*========================... 阅读全文
posted @ 2013-11-29 12:00 朝着 阅读(219) 评论(0) 推荐(0) 编辑
摘要: if exists (select 1 from sysobjects where id = object_id('tb_Menu') and type = 'U') drop table tb_Menugo/*==============================================================*//* Table: tb_Menu *//*========================... 阅读全文
posted @ 2013-11-29 00:28 朝着 阅读(234) 评论(0) 推荐(0) 编辑
  2013年11月28日
摘要: if exists(select * from sysobjects where name='tb_tree')drop table tb_treegocreate table tb_tree( id int primary key identity, name varchar(50), pId int, level int, sort int, cNum int)goinsert into tb_tree(name,pId,level,sort,cNum) values('节点1',0,1,0,6);insert into tb_tree(name,pId.. 阅读全文
posted @ 2013-11-28 17:54 朝着 阅读(274) 评论(0) 推荐(0) 编辑
  2013年11月26日
摘要: if exists (select * from sysobjects where name='proc_menu_delete')drop proc proc_menu_deletegocreate proc proc_menu_delete(@id int)as declare @count int,@tmpid intselect @count=count(1) from Menu where Id=@idif(@count>0)begin declare ar_cursor cursor local for select id from menu where pi 阅读全文
posted @ 2013-11-26 22:51 朝着 阅读(306) 评论(0) 推荐(0) 编辑
  2013年11月9日
摘要: JSON与XML的区别比较1.定义介绍(1).XML定义扩展标记语言 (Extensible Markup Language, XML) ,用于标记电子文件使其具有结构性的标记语言,可以用来标记数据、定义数据类型,是一种允许用户对自己的标记语言进行定义的源语言。 XML使用DTD(document ... 阅读全文
posted @ 2013-11-09 22:50 朝着 阅读(168) 评论(0) 推荐(0) 编辑
  2013年11月3日
摘要: default.htmlvar ToolObj;var ContentObj;var RangArr = {}; //定义一个数组变量:用于存储选择范围:rangvar Extend = function... 阅读全文
posted @ 2013-11-03 17:37 朝着 阅读(237) 评论(0) 推荐(0) 编辑
  2013年11月2日
摘要: var ToolObj;var ContentObj;var RangArr = {}; //定义一个数组变量:用于存储选择范围:rangvar Extend = function (destination, source) { for (var item in source) { destination[item] = source[item]; } return destination;}var EventUtil = function (element, type, hander) { if (element.addEventListener) { ... 阅读全文
posted @ 2013-11-02 23:51 朝着 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Default.htmlvar ToolObj;var ContentObj;var RangArr = {}; //定义一个数组变量:用于存储选择范围:rangvar Extend = function (destination, source) { for (var item in source) { destination[item] = source[item]; } return destination;}var EventUtil = function (... 阅读全文
posted @ 2013-11-02 18:17 朝着 阅读(153) 评论(0) 推荐(0) 编辑
  2013年10月29日
摘要: B U I + 001 阅读全文
posted @ 2013-10-29 21:58 朝着 阅读(190) 评论(0) 推荐(0) 编辑
  2013年10月15日
摘要: AlertBox 弹出层(信息提示框)效果 AlertBox 右下角消息框 关闭 关闭 点击拖动 AlertBox.htm/*! * AlertBox * Copyright (c) 2010 cloudgamer * Blog: http://cloudgamer.cnblogs.com/ * Date: 2010-10-10 *///显示层对象var AlertBox = function(b... 阅读全文
posted @ 2013-10-15 11:30 朝着 阅读(272) 评论(0) 推荐(0) 编辑
摘要: /*! * Cloudgamer JavaScript Library v0.1 * Copyright (c) 2009 cloudgamer * Blog: http://cloudgamer.cnblogs.com/ * Date: 2009-10-15 */var $$, $$B, $$A, $$F, $$D, $$E, $$CE, $$S;(function(undefined){var O, B, A, F, D, E, CE, S;/*Object*/O = function (id) { return "string" == typeof id ? docu 阅读全文
posted @ 2013-10-15 11:27 朝着 阅读(398) 评论(0) 推荐(0) 编辑
  2013年9月30日
摘要: public ActionResult DownAttachment(string dUrl, string fileName) { try { dUrl = HttpUtility.UrlDecode(dUrl); var bytes = new System.Net.WebClient().DownloadData(dUrl); Response.ContentType = "application/octet-stream"; ... 阅读全文
posted @ 2013-09-30 09:11 朝着 阅读(123) 评论(0) 推荐(0) 编辑
  2013年9月29日
摘要: ScrollBaseJs.jsvar $$ = function (id) { return typeof id == 'string' ? document.getElementById(id) : id;};Object.extend = function (destination, so... 阅读全文
posted @ 2013-09-29 22:13 朝着 阅读(349) 评论(0) 推荐(1) 编辑
  2013年9月10日
摘要: public static string ObjectToJson(T t) { using (MemoryStream ms = new MemoryStream()) { DataContractJsonS... 阅读全文
posted @ 2013-09-10 11:04 朝着 阅读(189) 评论(0) 推荐(0) 编辑
  2013年8月31日
摘要: 热点新闻1 热点新闻2 热点新闻3 热点新闻4 ... 阅读全文
posted @ 2013-08-31 18:20 朝着 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 仿淘宝/alibaba图片切换: ... 阅读全文
posted @ 2013-08-31 18:14 朝着 阅读(447) 评论(0) 推荐(0) 编辑
  2013年7月26日
摘要: MVC表单异步提交(不仅限于表单也不仅限于MVC)页面部分:方法一:注意:表单字段名称必须和实体属性名称一模一样$.post("路径", $("#表单ID").serialize(), function (data) { alert('提交成功'); ... 阅读全文
posted @ 2013-07-26 19:37 朝着 阅读(189) 评论(0) 推荐(0) 编辑
  2013年7月24日
摘要: 热点新闻1 热点新闻2 热点新闻3 热点新闻4 ... 阅读全文
posted @ 2013-07-24 21:26 朝着 阅读(191) 评论(0) 推荐(0) 编辑
  2013年7月15日
摘要: 下列语句部分是Mssql语句,不可以在access中使用。 SQL分类:DDL—数据定义语言(CREATE,ALTER,DROP,DECLARE)DML—数据操纵语言(SELECT,DELETE,UPDATE,INSERT)DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK) 首先,简要介绍基础语句:1、说明:创建数据库CREATE DATABASE database-name 2、说明:删除数据库drop database dbname 3、说明:备份sql server--- 创建 备份数据的 deviceUSE masterEXEC sp_addumpdevi 阅读全文
posted @ 2013-07-15 12:41 朝着 阅读(396) 评论(0) 推荐(0) 编辑