蓝色信仰

博客园 首页 新随笔 联系 订阅 管理

2012年11月24日 #

摘要: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="ajaxselect.OnmouseTitle.WebForm1" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML> <HEAD> <title>WebForm1</ 阅读全文
posted @ 2012-11-24 21:34 蓝色信仰 阅读(10003) 评论(0) 推荐(0) 编辑

2012年11月21日 #

摘要: 原始结构:Column1 Column2 ---------------------1 A1 B2 C2 D2 E3 F查询效果:Column1 Column2 -----------------------------1 A,B2 C,D,E3 F即将Column1相同的行的Column2连成一列。不知如何描述此种用法,是否具有像交叉表相关的Cross-Table和Pivot 之类的约定成熟的专业称谓?是否也可以称为另一种Cross-Table?此需求应该是常见的,网上也有许... 阅读全文
posted @ 2012-11-21 14:02 蓝色信仰 阅读(2236) 评论(0) 推荐(0) 编辑

2012年10月30日 #

摘要: How to recover SA password on Microsoft SQL Server 2008 R2When you are using MS SQL Server in mixed mode, it is very important that you know your SA password.There can be different reasons you lost the passwordPerson who installed the SQL Server knows the password but has left the building.You did n 阅读全文
posted @ 2012-10-30 14:36 蓝色信仰 阅读(431) 评论(0) 推荐(0) 编辑

2012年10月1日 #

摘要: 1. ctrl+shift+F搜索AP_WSU, 模仿增加AP_WSU模块的一系列代码增改动作。搜索结果如下图:2. D:\WorkProjects\TGSAPSystem\Code\Ameriscan\SQL Scripts\Change Scripts\Ameriscan20120614_Peter.sql 这个文件里有Peter添加WSU时候的SQL代码,有几段是不需要的,其他都可以替换字符串利用。 阅读全文
posted @ 2012-10-01 16:08 蓝色信仰 阅读(189) 评论(0) 推荐(0) 编辑

2012年9月25日 #

摘要: Set oFso = CreateObject("Scripting.FileSystemObject")Set oFolder = oFso.GetFolder(sPath)mpath="d:\1" rem:这里设置你要拷进去的文件夹路径Set oFiles = oFolder.FilesFor Each oFile In oFiles If FormatDateTime(ofile.DateCreated,1)=FormatDateTime(Date,1) Then ofso.CopyFile ofile.Path,mpath End ifNextS 阅读全文
posted @ 2012-09-25 12:00 蓝色信仰 阅读(1709) 评论(0) 推荐(0) 编辑

2012年9月6日 #

摘要: http://www.pdflabs.com/docs/pdftk-cli-examples/ Pdftk Examples These examples show you how to perform common PDF tasks from the command-line using pdftk. Merge Two or More PDFs into a New Document pd... 阅读全文
posted @ 2012-09-06 09:56 蓝色信仰 阅读(2221) 评论(0) 推荐(0) 编辑

2012年8月8日 #

摘要: 理解抽象类 abstract class和interface在c#语言中都是用来进行抽象类(本文 中的抽象类并非从abstract class翻译而来,它表示的是一个抽象体,而abstract class为c#语言中用于定义抽象类的一种方法, 请读者注意区分)定义的,那么什么是抽象类,使用抽象类能为我们带来什么好处呢? 在面向对象的概念中,我们知道所有的对象都是通过类来描绘的,但是反过来却不是这... 阅读全文
posted @ 2012-08-08 15:52 蓝色信仰 阅读(16755) 评论(3) 推荐(5) 编辑

2012年7月9日 #

摘要: 后台代码: Default.aspx.csusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using iTextSharp.text;using iTextSharp.text.pd... 阅读全文
posted @ 2012-07-09 11:57 蓝色信仰 阅读(1330) 评论(0) 推荐(0) 编辑

2012年7月3日 #

摘要: <a href='<%# string.Format("Default.aspx?id={0}&role={1}", Eval("userId"),Eval("userRole"))%>'><%# Eval("userName") %></a> 阅读全文
posted @ 2012-07-03 09:53 蓝色信仰 阅读(1777) 评论(0) 推荐(0) 编辑

摘要: 经常会碰到在前台代码中要使用(或绑定)后台代码中变量值的问题。一般有<%= str%>和<%# str %>两种方式,这里简单总结一下。如有错误或异议之处,敬请各位指教。 一方面,这里所讲的前台即通常的.aspx文件,后台指的是与aspx相关联的CodeBehind,文件后缀名为.aspx.cs;另一方面,这里的绑定是指用户发出访问某一页面指令后,服务器端在执行过程中就已经将前台代码进行了赋值... 阅读全文
posted @ 2012-07-03 09:34 蓝色信仰 阅读(2950) 评论(0) 推荐(0) 编辑