摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace WebApplication1.AppCode{ using System.Reflection; usi... 阅读全文
posted @ 2015-08-22 17:10 哈哈2222 阅读(393) 评论(0) 推荐(2)
摘要: 不能传入out或ref public IEnumerable GetShop() { for (int i = 1; i < 11; i++) { yield return new Shop ... 阅读全文
posted @ 2015-06-25 16:49 哈哈2222 阅读(216) 评论(0) 推荐(1)
摘要: ALTER FUNCTION [dbo].[fu_GetCaption](@Stage nvarchar(50),@T_stage_weeks int,@S_stage_months int,@RowNum int --第几行)RETURNS nvarchar(260)ASBEGINDeclare ... 阅读全文
posted @ 2015-06-25 16:23 哈哈2222 阅读(187) 评论(0) 推荐(1)
摘要: /*SELECT dbo.fn_PadLeft('8', '0', 6) */create function fn_PadLeft(@num nvarchar(16),@paddingChar char(1),@totalWidth int)returns nvarchar(16) asbegin... 阅读全文
posted @ 2015-06-25 16:19 哈哈2222 阅读(237) 评论(0) 推荐(1)
摘要: DROP TABLE #MTDDECLARE @startDate date = '20150601' ,@endDate date = cast(getdate() as date)CREATE TABLE #MTD(bydate date)DECLARE @count int = D... 阅读全文
posted @ 2015-06-25 16:18 哈哈2222 阅读(336) 评论(0) 推荐(1)
摘要: 当页面Get的时候: 生成一个Token(如GUID 、MD5等字符串),存入页面一个隐藏域 ,且存入Session当页面提交的时候 获取隐藏域的值,和服务器Session进行校验 校验成功 清除Session 阅读全文
posted @ 2015-05-16 17:27 哈哈2222 阅读(392) 评论(0) 推荐(1)
摘要: 1、既然要谈到sql,数据库表是必须的2、数据结构 3、获取某个节点的所有子节点 传统的写法(sql2000) 很麻烦,暂且就不写了 来看看CTE的写法 CREATE PROC sp_getTreeById(@TreeId int)ASBEGIN WITH cteTree ... 阅读全文
posted @ 2015-01-24 15:42 哈哈2222 阅读(31186) 评论(9) 推荐(12)
摘要: 点击查看效果1、页面结构: 城市拼音: 拼音支持首字母输入 A-E F... 阅读全文
posted @ 2015-01-08 16:32 哈哈2222 阅读(1409) 评论(0) 推荐(1)
摘要: Document doc = new Document(); //粉丝名称 string memberName = ""; var detail = listDetails.FirstOrDefault(); ... 阅读全文
posted @ 2014-10-27 09:21 哈哈2222 阅读(2359) 评论(0) 推荐(1)
摘要: 阅读全文
posted @ 2014-10-26 17:52 哈哈2222 阅读(613) 评论(0) 推荐(1)