摘要: SqlHelper.csView Code using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;namespace DBHelper{ /// <summary> /// 数据库的通用访问代码 /// 此类为抽象类,不允许实例化,在应用时直接调用即可 /// </su... 阅读全文
posted @ 2012-04-28 15:52 zhangchun 阅读(331) 评论(0) 推荐(0) 编辑
摘要: aspx页面:View Code <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TreeView.aspx.cs" Inherits="TreeView" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quo 阅读全文
posted @ 2012-04-28 15:42 zhangchun 阅读(499) 评论(0) 推荐(0) 编辑
摘要: using System.Security.Cryptography; //引入MD5命名空间。using System.Text;//引入StringBuilder命名空间。 string pw = psword.Text ;//获得输入密码 MD5 md5 = new MD5CryptoServiceProvider(); byte[] data = System.Text.Encoding.Default.GetBytes(pw); byte[] md5data = md5.ComputeHash(data); md5.Clear(); StringBuilder sb=new Stri 阅读全文
posted @ 2012-04-28 10:29 zhangchun 阅读(226) 评论(0) 推荐(0) 编辑