c#.net技术
文章平均质量分 70
lankawangzi
这个作者很懒,什么都没留下…
展开
-
ASP.NET与数据库相关技巧 选择自 tongwenhuan2003 的 Blog
一、取得数据表 i 行 j 列的值 //建立并打开数据库连接 OleDbConnection conn=new OleDbConnection(); conn.ConnectionString=strConnectionString;//strConnectionString为数据库连接字符串 conn.Open(); string sql="select *转载 2005-08-06 10:29:00 · 580 阅读 · 0 评论 -
如何在传统 ASP 和 ASP.NET 之间共享会话状态
Billy YuenMicrosoft Corporation2003 年 2 月适用于:Microsoft ASP.NET摘要:讨论如何利用 Microsoft .NET 框架类和 .NET 框架的序列化特性,以便在传统 ASP 和 Microsoft ASP.NET 之间共享会话状态。通过共享会话状态,就允许在并行运行现有的 ASP 应用程序和 ASP.NET 应用程序的同时,分阶段地将 AS转载 2005-08-17 10:08:00 · 606 阅读 · 0 评论 -
md5加密
public static string GetMD5(string str) { byte[] b=System.Text.Encoding.Default.GetBytes(str); b=new System.Security.Cryptography.MD5CryptoServiceProvider().ComputeHash(b); string ret=""; for转载 2005-08-17 14:27:00 · 605 阅读 · 0 评论 -
c#.net常用函数列表
c#.net常用函数列表1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日转载 2005-08-17 17:13:00 · 451 阅读 · 0 评论 -
验证码
我也是初学不大会 这是别人给我的验证码程序 image.aspx.csusing System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System转载 2005-09-02 14:58:00 · 638 阅读 · 0 评论 -
取得CheckBoxList的值
Message.Text = "Selected Item(s):"; // Iterate through the Items collection of the CheckBoxList // control and display the selected items. for (int i=0; i转载 2005-09-06 17:24:00 · 938 阅读 · 0 评论