摘要: 以一个类来定义结点类,其中包含结点数据值,前结点,后结点(双向链表的情况有前、后结点)。using System;using System.Collections.Generic;using System.Text;namespace Csharp{ public class Node<T> where T : IComparable<T> { T data; /// <summary> /// the current data /// </summary> public T Data { ... 阅读全文
posted @ 2012-02-09 17:55 One Ivan 阅读(496) 评论(0) 推荐(0) 编辑
摘要: 游标中用到的函数,就是前一篇文章中创建的那个函数。另外,为了方便使用,把游标放在存储过程中,这样就可以方便地直接使用存储过程来执行游标了。 1 create procedure UpdateHKUNo --存储过程里面放置游标 2 as 3 begin 4 5 declare UpdateHKUNoCursor cursor --声明一个游标,查询满足条件的数据 6 for select psn_code from person where type='E' and hku_no is null 7 8 open UpdateHKUNoC... 阅读全文
posted @ 2012-01-13 10:07 One Ivan 阅读(20642) 评论(0) 推荐(1) 编辑
摘要: 一、有返回值的函数View Code create function GetNo()returns varchar(20) --定义返回类型asbegin declare @maxNo int --声明一个整形的变量 declare @temp varchar(20) --声明一个与表中字段类型相同的变量 declare @result varchar(20) --声明一个返回的变量 declare @length int --声明一个变量,用于下面的截取字符串 set @temp = (select max(hku_no) fro... 阅读全文
posted @ 2012-01-12 17:12 One Ivan 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 很简单的一个例子,先记着,怕忘了这个方法。例子是用VS2003做的,可能有些出入。View Code using System;using System.Text;namespace ASCIIEncodingDemo{ /// <summary> /// Class1 的摘要说明。 /// </summary> class Class1 { /// <summary> /// 应用程序的主入口点。 /// </summary> [STAThread] static void Main(stri... 阅读全文
posted @ 2012-01-12 09:51 One Ivan 阅读(464) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography;using System.IO;namespace EncryptDemo{ class Program { static void Main(string[] args) { // Create a new DES key. DESCryptoServiceProvider ke... 阅读全文
posted @ 2012-01-11 16:32 One Ivan 阅读(3808) 评论(0) 推荐(0) 编辑
摘要: //行号 int row = ((GridViewRow)((Button)sender).NamingContainer).RowIndex;自定义列的显示(参考自csdn.net):<asp:TemplateField> <ItemTemplate> <asp:Label ID="Label1" runat="server" /> </ItemTemplate> </asp:TemplateField>protected void GridView1_RowDataBound(object 阅读全文
posted @ 2011-12-22 02:18 One Ivan 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 網址:http://localhost:1897/News/Press/Content.aspx/123?id=1#tocRequest.ApplicationPath/Request.PhysicalPathD:\Projects\Solution\web\News\Press\Content.aspxSystem.IO.Path.GetDirectoryName(Request.PhysicalPath)D:\Projects\Solution\web\News\PressRequest.PhysicalApplicationPathD:\Projects\Solution\web\Sys 阅读全文
posted @ 2011-12-19 03:24 One Ivan 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 主要用到的是CSS样式控制和简单的Jquery逻辑控制。CSS:使得图片播放框的大小适合并固定,同时实现溢出隐藏,这样就可以使尚没应该播放的图片得以隐藏;另外,它还自定义手动切换按钮的效果。Jquery:根据逻辑和设置的时间,循环移除/添加控件里面的样式class,实现图片的隐与显。总之一句,核心原理是对图片相对位置的控制。下面是最基本和简陋Demo。完全可以再拓展,用到函数方法的封装,OOP之类的。页面代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www. 阅读全文
posted @ 2011-12-12 14:21 One Ivan 阅读(1905) 评论(0) 推荐(0) 编辑
摘要: 阅读本文章之前的准备 阅读本文章前,需要读者对以下知识有所了解。否则,阅读过程中会在相应的内容上遇到不同程度的问题。 懂得ASP/ASP.NET编程 了解ASP/ASP.NET的Session模型 了解ASP.NET Web应用程序模型 了解ASP.NET Web应用程序配置文件Web.config的作用、意义及使用方法 了解Internet Information Services(以下简称IIS)的基本使用方法 了解如何在Microsoft SQL Server中创建一个数据库。Session模型简介 Session是什么呢?简单来说就是服务器给客户端的一个编号。当一台WW... 阅读全文
posted @ 2011-12-07 00:22 One Ivan 阅读(1232) 评论(0) 推荐(0) 编辑
摘要: http://holy.be/bbs/t-3-633.html(AppServ)http://www.biaodianfu.com/windows-xampp-awstats.html(XAMPP) 阅读全文
posted @ 2011-11-30 09:20 One Ivan 阅读(514) 评论(0) 推荐(0) 编辑