易截截图软件、单文件、免安装、纯绿色、仅160KB

ASP.NET C# 验证码 支持中文 噪点 弯曲

/// <summary>
        /// 根据指定参数返回BitMap对象
        /// 引用如下:
        /// using System.Drawing;
        /// 调用例子如下:
        ///     eg1、保存为图象文件为
        ///     Bitmap srBmp = srBitmap(srs);
        ///     srBmp.Save(Directory.GetCurrentDirectory() + "\\srs.gif", System.Drawing.Imaging.ImageFormat.Gif);
        ///     srBmp.Dispose();
        ///     eg2。网页中调用方式如下
        ///     Bitmap srBmp = srBitmap(srs);
        ///     System.IO.MemoryStream srMS = new System.IO.MemoryStream();
        ///     srBmp.Save(srMS,System.Drawing.Imaging.ImageFormat.Gif);
        ///     Response.ClearContent();
        ///     Response.ContentType = "image/gif";
        ///     Response.BinaryWrite(srMS.ToArray());
        ///     srBmp.Dispose();
        /// </summary>
        /// <param name="srs"></param>
        /// <returns></returns>
        public static Bitmap srBitmap(string srs)
        {
     


相关文档:

C#中用于连接SQL数据库的SQLHelper类

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;   //引用命名空间
namespace DAL
{
    /*******************************************************************************
  &n ......

asp.net 验证正则表达式收藏

整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$
只能输入数字:"^[0-9]*$"。
只能输入n位的数字:"^\d{n}$"。
只能输入至少n位的数字:"^\d{n,}$"。
只能输入m~n位的数字:。"^\d{m,n}$"
只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。
只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。
只能输入有1~3位小数的 ......

WCF 与 Asp.net Web service 比较

首先简单介绍一下 WCF 是什么,然后再对 WCF 和 Asp.net Web service 做个比较。
    Windows Communication Foundation (WCF) 是用于构建面向服务的应用程序的框架。借助 WCF,可以将数据作为异步消息从一个服务终结点发送至另一个服务终结点。服务终结点可以是由 IIS 承载的持续可用的服务的一部分,也可 ......

Asp.Net前台调用后台变量

1.Asp.Net中几种相似的标记符号: < %=...%>< %#... %>< % %>< %@ %>解释及用法
答: < %#... %>: 是在绑定控件DataBind()方法执行时被执行,用于数据绑定
如: < %# Container.DataItem("tit") %>
< %= %>: 在程序执行时被调用,可以显示后台变量值
如:
*.aspx中: < %= a ......

ASP.NET的默认调用后台函数

以下是系统自动生成的回调函数
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.ons ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号