随笔分类 - ASP.NET
摘要:"^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]+\.[0-9]*[1-9][0-9]...
阅读全文
摘要:c#2.0 System.Net.Mail 发送email 如果你装了杀毒软件,比如我装的 McAfee VirusScan。他们默认就阻滞程序发送邮件,甚至包括WEB程序,也会阻滞。而我以前只碰到过这个杀毒软件阻滞Windows程序,今天竟然发现WEB程序也阻滞了。 你用程序发送邮件时候,可能会收到 "无法连接到远程服务器" 、"您的主机中的软件放弃了一个已建立的连接。"的异常。 要解决这个问...
阅读全文
摘要:http://pw.cnblogs.com/archive/2006/06/25/435357.html加密操作如下: private void ProtectSection(string sectionName, string provider) { Configuration config = WebConfigurationManager. ...
阅读全文
摘要:VeriSign Verisign PayMent Relation Method#region Verisign PayMent Relation Method protected void VeriSignDoDirectPayment_Click(object sender, EventArgs e) { try { string...
阅读全文
摘要:1、向应用程序的添加缓存 public void Insert ( string key, Object value, CacheDependency dependencies, DateTime absoluteExpiration, TimeSpan slidingExpiration ) 参数 key 用于引用该对象的缓存键。 value 要插入缓存中的对象。 dependenc...
阅读全文
摘要:SQLite语法备忘录 ajumail 发表于 2005-04-22 SQLite内建语法表 结构定义 CREATE TABLE 创建新表。 语法: sql-command ::= CREATE [TEMP | TEMPORARY] TABLE table-name ( column-def [, column-def]* [, constraint]*) ...
阅读全文
摘要:1. 在ASP.NET中专用属性: 获取服务器电脑名:Page.Server.ManchineName 获取用户信息:Page.User 获取客户端电脑名:Page.Request.UserHostName 获取客户端电脑IP:Page.Request.UserHostAddress 2. 在网络编程中的通用方法: 获取当前电脑名:static System.Net.Dns.GetH...
阅读全文
摘要:private void WriteXML() { string sConn = "user=sa;password=*;Data Source=*;Initial Catalog = *;Connection Timeout=60;"; string sql = "select * from Table1"; Sql...
阅读全文
摘要:using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebContr...
阅读全文

浙公网安备 33010602011771号