- 博客(231)
- 资源 (52)
- 收藏
- 关注
原创 LINQ Group Query
1.按照第一个字母进行分组 static void Main() { string[] words = { "blueberry", "chimpanzee", "abacus", "banana", "apple", "cheese" }; var wordG
2011-09-09 11:41:52 1084
原创 Jquery Ajax 读取XML 数据
$(document).ready(function () { $("#Display").click(function () { $("#message").html(''); $.ajax
2011-08-01 14:50:05 15730 3
原创 Jquery Ajax智能提示
.message { position:relative; left:10px; background-color:Gray; width:150px; margin:10px 0 0 160
2011-08-01 11:33:19 3223
原创 Jquery Ajax判断当前用户是否存在
1.判断当前用户是否存在HTML $(document).ready(function () { $("#submit").click(function () { va
2011-08-01 10:45:15 3139
原创 Jquery 表格处理(过滤行,过滤列,分页)
1.在鼠标悬停时突出显示一行 .hover { color:#fff; background-color:#f00; } $(document).rea
2011-07-29 13:45:12 4968 1
原创 Jquery页面导航(菜单悬停,折叠效果)
1.把悬停效果加到菜单项 ul { width:200px; } ul li ul { list-style-type:none; wid
2011-07-28 16:32:24 4164
原创 Jquery表单验证(只能输入数字,检查复选框)
1.只能输入数字 #error { padding-left:15px; color:Red; } $
2011-07-28 15:35:50 20637 1
原创 Jquery中的事件处理(自动触发事件,禁用按钮,悬停,失焦,滑动效果)
1.自动触发事件 .Red { color:Red; } .Green { color:Green; } .buttons { text-align
2011-07-26 17:50:59 17446 2
原创 JQuery中 数组与字符串(过滤,排序,拆分,合并)
1.操作数组元素--将数组中的元素转换为大写显示出来 $(document).ready(function () { var NamePosition = $("#names");
2011-07-26 16:18:25 25520
原创 使用作业,每天定时将DB中信息导出到指定的文件夹中txt文本中(文件格式按照时间)
1.打开BI.新建立Integration Services Project2. 在连接管理中建立,你要使用那个DB 中的表信息3.创建你要导出txt 文本,因为文本是自动生成的.首先我们要指定文件夹,此时 我们使用变量定义txt文本 因为文本是按照特
2011-07-26 11:07:38 1441
原创 观察者模式
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace observerModel{ interface Subjec
2011-07-06 14:35:36 745
原创 IQueryable 提供对数据类型已知的特定数据源的查询计算的功能
1.使用Enumerable.AggregateTSource, TAccumulate, TResult> 方法: 对序列应用累加函数,将指定的种子作为初始值,并且使用指定的函数选择结构值 string[] fruits= { "APPLE"
2011-07-04 16:05:01 1590
原创 枚举目录和文件
1.枚举所有目录中的名称try { //返回指定路径中与搜索模式匹配的文件名称的可枚举集合,还可以搜索子目录。 var files = from file in Directory.EnumerateFiles(@"F:/电影/", "*.txt", SearchOption.AllDirectories)
2011-06-30 15:01:00 1586
原创 SQL OUTPUT CLUASE
--OUTPUT CLAUSE --1 INSERT WITH OUTPUT IF OBJECT_ID(Rows) IS NOT NULL DROP TABLE ROWS CREATE TABLE [ROWS](COL INT IDENTITY(1,1),DATACOL VARCHAR(20)) INSERT INTO [ROWS] OUTPUT inserte
2011-06-16 16:11:00 1427
原创 MERGE 解决 当目标表 与原始表 比较异同,判断insert,update,delete 操作
--1Date and Time Types--following the queryies that it shows different accuracyselect cast(02/07/2007 as datetime)--The result:2007-02-07 00:00:00.000,Accuracy:millisecondselect cast(02/07/2007 as
2011-06-14 17:49:00 1445
原创 sql PIVOT,UNPIVOT,GROUPING SETS
if OBJECT_ID(Orders)is not nulldrop table Ordersgocreate table Orders(orderid int not null,orderdate date not null,empid int not null,cusid varchar(5)not null,qty int not null,constraint P
2011-06-14 13:32:00 1141
原创 当使用restore .bak文件的时候.显示如信息:Use WITH MOVE to identify a valid location for the file
1.首先使用restore Filelistonly 显示bak 文件中包含的数据库和日志文件列表 RESTORE FILELISTONLY FROM DISK = D:FMSDBAuthoringToolFMSGuo.bak信息如下 LogicalName PhysialNameSystemCatelogFile SystemCatelogFile_1Sys
2011-06-03 17:17:00 2463
原创 将Assembly 添加到GAC中的时候,Attemp Adding assembly without string name
Failure adding assembly to the cache:Attemp Adding assembly without string nameFailure adding assembly to the cache: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded
2011-06-02 14:16:00 2646
原创 TFS中文件被lock之后如何让解锁
<br />用一下命令行<br /> tf undo /workspace:yourworkspace;domain/username $/文件路径<br />
2011-05-31 09:27:00 3161
原创 SQL 中 sp_xml_preparedocument,openxml的使用
SQL 中 sp_xml_preparedocument,openxml的使用
2011-04-15 17:49:00 2720
原创 XSL基础: call-template,apply-templates,xsl:param,with-param,number format 用法
XSL基础: call-template,apply-templates,xsl:param,with-param,number format 用法
2011-04-10 12:23:00 3435 6
原创 浅复制&深复制
<br />--浅复制<br /> class Resume:ICloneable { private string UserName; private string Sex; private int Age; private string Company; private string TimeArea; public Resume(string Name) {
2010-11-15 10:07:00 1433
原创 Extjs 对tabPanel中的第一个Panel进行布局 让里面的面板具有拖拽效果
Extjs 对tabPanel中的第一个Panel进行布局 让里面的面板具有拖拽效果
2010-11-03 12:00:00 5570 3
原创 Ext 中 fieldLabel随DateField,TextField....控件的显示而显示,隐藏而隐藏
Ext 中 fieldLabel随DateField,TextField....控件的显示而显示,隐藏而隐藏
2010-10-26 10:42:00 4846 1
原创 ASP.NET执行 Button控件 OnClick事件之前进行 JS验证 通过之后执行服务器事件 不通过不执行
ASP.NET执行 Button控件 OnClick事件之前进行 JS验证 通过之后执行服务器事件 不通过不执行
2010-10-21 09:30:00 7186 1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人