C#
cbting
这个作者很懒,什么都没留下…
展开
-
格式化字符串format
[size=medium][size=x-small][color=green] //格式化字符串format //格式化成为货币 string str = string.Format("{0:C}\n",-123.2332f); //格式化为断时间 string str1 = string.Format("{0...2009-05-10 20:01:38 · 96 阅读 · 0 评论 -
用Substring方法截取字符串
[size=x-large] protected void Page_Load(object sender, EventArgs e) { //用Substring方法截取字符串 string str = "Hello word"; string str1 = str.Substring(0,3); Response....2009-05-10 20:08:06 · 193 阅读 · 0 评论 -
用Equals比较字符串的比较 相等为true,不相等为false
protected void Page_Load(object sender, EventArgs e) { //用Equals比较字符串的比较 相等为true,不相等为false string str = "abc"; string str1 = "abC"; string str2 = "abc"; bool st...2009-05-10 20:22:16 · 409 阅读 · 0 评论 -
SQLHelper类
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace DAL{ public class SQLhepler ...2009-05-11 17:42:32 · 85 阅读 · 0 评论 -
验证码问题
<%@ WebHandler Language="C#" Class="WaterMark" %>using System; using System.Web; using System.Drawing; using System.Drawing.Drawing2D; using System.Web.SessionState; public class...2009-05-15 15:53:49 · 167 阅读 · 0 评论 -
MD5 的摘要说明
/// <summary>///MD5 的摘要说明/// </summary>public static class MD5{ public static string GetMD5(string Input, bool Half) { string output = System.Web.Security.FormsAuthentication...2009-06-07 15:57:03 · 157 阅读 · 0 评论