摘要: using System;using System.Collections.Generic;using System.Text;using System.Data;using System.Data.OleDb;namespace SyncCardService{ public class E... 阅读全文
posted @ 2012-08-30 16:19 hanwest 阅读(1903) 评论(0) 推荐(0) 编辑
摘要: 网络邮件收取使用的是Pop3协议,了解Pop3协议有助于我们加深对邮件系统的理解。而且使用Pop3协议你还可以直接telnet 到邮件服务器上去收信。 一般telnet Pop3 Server 110后就可以用这些命令了,大小写不敏感, 不包括口令本身,注意不要让口令回显,等验证通过后再允许回显... 阅读全文
posted @ 2012-08-23 10:51 hanwest 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 选择器是jQuery最基础的东西,本文中列举的选择器基本上囊括了所有的jQuery选择器,也许各位通过这篇文章能够加深对jQuery选择器的理解,它们本身用法就非常简单,我更希望的是它能够提升个人编写jQuery代码的效率。本文配合截图、代码和简单的概括对所有jQuery选择器进行了介绍,也列举出了一些需要注意和区分的地方。一、基本选择器1. id选择器(指定id元素)将id="one"的元素背景色设置为黑色。(id选择器返单个元素)$(document).ready(function () { $('#one').css('background&# 阅读全文
posted @ 2012-08-21 17:36 hanwest 阅读(144) 评论(0) 推荐(0) 编辑
摘要: declare @i as int declare @begintime as datetime set @begintime = getdate() set @i = 0 while @i < 100 begin insert into TestT (title,info,flag) values ('title'+cast(@i as varchar),'info'+cast(ceiling(rand() * 100) as varchar ),ceiling(rand() * 2)) set @i = @i + 1 end select datedi 阅读全文
posted @ 2012-08-21 14:59 hanwest 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 验证码生成:ValiImage.ashxusing System; using System.Collections; using System.Data; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; using System.Drawing; using System.IO; using System.Web.SessionState; namespace TestWeb { /// <summary> /// 简单的验证码 /// </summa... 阅读全文
posted @ 2012-08-21 14:52 hanwest 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 偷懒,直接用了Microsoft的Url Rewriting。把.htm作为映射后,在正常访问htm页面时出现了错误:Server Error in '/' Application.--------------------------------------------------------------------------------There is no build provider registered for the extension '.htm'. You can register one in the <compilation>&l 阅读全文
posted @ 2011-12-05 16:59 hanwest 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 搜索到的google jQuery引用地址,方便调用,好处就不用说了吧。 jQuery 1.2.6 引用文件 google jQuery 1.3.2引用文件 google jQuery 1.4.2引用文件 google jQuery 1.5.2引用文件 Google Libraries AP... 阅读全文
posted @ 2011-06-03 09:12 hanwest 阅读(264) 评论(0) 推荐(0) 编辑
摘要: //页面CreateFilePath.aspx.cs public partial class CreateFilePath:System.Web.UI.Page { //要传给Default.aspx页面的值 public string Name { ge... 阅读全文
posted @ 2011-02-25 12:04 hanwest 阅读(3083) 评论(0) 推荐(0) 编辑
摘要: ASP.NET的内置对象介绍 1.Response 2.Request 3.Server 4.Application 5.Session 6.Cooki Request对象主要是让服务器取得客户端浏览器的一些数据,包括从HTML表单用Post或者GET方法传递的参数、Cookie和用户认证。因为Request对象是Page对象的成员之一,所以在程序中不需要做任何的声明即可直接使用; 其类名为 HttpRequest 属性很多,但方法很少,只有一个BinaryRead() 1.使用Request.Form属性获取数据 通过该属性,读取<Form></Form>之间的表单数 阅读全文
posted @ 2011-02-25 10:37 hanwest 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1. 方法签名与方法的显式隐藏 以下程序中,子类B与父类A存在签名相同的函数,将产生方法隐藏。由于没有显式使用new修饰符,编译时出现警告。签名相同简单的讲是指忽略访问控制符、函数返回值、参数名后其它内容相同。如:internal int Print(int x) public void Print(int y) protected float Print(int z) 忽略访问控制符、返回值与参数名后都变成了Print(int),所以它们都是签名相同的函数。 public int Print(int x, int y) 和 public int Print(int x) 属于不同签名的函数 阅读全文
posted @ 2011-02-25 09:07 hanwest 阅读(249) 评论(0) 推荐(0) 编辑