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

asp.net弹出确定或警告

在没有<asp:UpdatePanel ID="up" runat="server"> <ContentTemplate>无刷新环境中:
      Response.Write("<script>alert('恭喜您,已成功加入到您的人才库!');</script>");
在有<asp:UpdatePanel ID="up" runat="server"> <ContentTemplate>无刷新环境中:
       ScriptManager.RegisterStartupScript(this.up, this.GetType(), "msgl", "alert('您还没有登录,请先登录!');", true);
点击按钮时弹出窗口有:
/// <summary>
        /// 在ASP.NET AJAX环境中弹出一个对话框
        /// </summary>
        /// <param name="button"></param>
        /// <param name="message"></param>
        public static void ShowAjaxDialog(Button button, string message)
        {
            ScriptManager.RegisterClientScriptBlock(button, typeof(Button), button.ClientID,
                "alert(\"" + message + "\");", true);
        }
       
        /// <summary>
        /// 说明:MessageBox用来在客户端弹出对话框。
        /// 参数:TxtMessage 对话框中显示的内容。
        /// </summary>
        public string MessageBox(string TxtMessage)
        {
            string str;
            str = "<script language=javascript>alert('" + TxtMess


相关文档:

学习asp.net比较完整的流程[转]

如果你已经有较多的面向对象开发经验,跳过以下这两步:
  第一步 掌握一门.NET面向对象语言,C#或VB.NET 我强烈反对在没系统学过一门面向对象(OO)语言的前提下去学ASP.NET。 ASP.NET是一个全面向对象的技术,不懂OO,那绝对学不下去!
  第二步 对.NET Framework类库有一定的了解 可以通过开发Windows Form应用程 ......

ASP.Net生成验证码

using System;
using System.Web;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
public partial class images_code : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string chkCode = string.Empty;
//颜色列表,用于验证码、噪线、噪点
Color[] col ......

ASP.NET 2.0运行时简要分析

概述:
      本文基于ASP.NET 2.0的源代码,对ASP.NET 2.0运行时进行了简要的分析,希望能帮助你理解ASP.NET 2.0中请求处理过程及页面编译模型。
关键字:
     ASP.NET 2.0运行时,原理,请求处理,页面编译,ASP.NET 2.0 HTTP Runtime
主要类:
   &nb ......

asp.net(C#)字符串加密

asp.net(C#)字符串加密
2010-03-12 09:59
using System;   
using System.Collections.Generic;   
using System.Text;   
using System.Security.Cryptography;//Cryptography密码术   
namespace DAL   
{   
......

ASP.NET连接SQL和ACCESS的方法

SQL:
using System.Data.SqlClient;
string sql = "server=.;uid=sa;pwd=;database=tablename;";
ACCESS:
using System.Data.OleDb;
string sql = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA Source=" + HttpRuntime.AppDomainAppPath + "//App_Data//db.mdb";
HttpRuntime.AppDomainAppPath 为根目录
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号