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

asp.net(c#) 制作注册码程序

1、定义CS类 using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Web.Configuration;
using Hasher;
/**//// <summary>
/// cs 的摘要说明
/// </summary>
///
namespace cs
...{
    public class cs
    ...{
    //判断序列号
        public bool  css()
        //m为配置文件值
        //x为序列号值
        //css进行比较该注册码是否正确
        ...{
            Hasher.Hasher hash = new Hasher.Hasher();
            string xulie = hash.Sern();
            string m = ConfigurationManager.AppSettings.Get("message").ToString();
          
                if (m == xulie)
            ...{
                return true;
            }
            else
            ...{
                return false;
            }
  &


相关文档:

asp.net点击按钮关闭窗口

protected void btncancel_Click(object sender, EventArgs e)
{
Page.RegisterStartupScript("", "<mce:script type="text/javascript"><!--
window.close()
// --></mce:script>");
}
......

ASP.NET于Excel的交互

public DataSet ExcelToDS(string Path)
{
string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Path + ";" + "Extended Properties=Excel 8.0;";
OleDbConnection conn = new OleDbConnection(strConn);
conn.Open();
string strExcel = "";
Ole ......

asp.net中提取字符串中所包含的中文

以前没有遇到,今天以前同事问这个问题,整出来做为收藏   
直接贴代码:
protected void Page_Load(object sender, EventArgs e)
    {
        Response.Write(SenFe_Replace("沉下心去做好每一件事_2010_2_1_asp.net_你一定行"));
  & ......

C#操作xml文件入门(后附示例源代码)

          ~/    在runat=server的控件中,自动的被解析为Request.ApplicationPath的值,是当前应用程序级程序的目录     在例子中是:/WebSite
          ./或者什么都不写:表示当 ......

asp.net 回调技术

看了asp.net 的回调技术后不是很理解。还是把写的东西贴下,自己以后学习时候多看看。前台index.aspx页<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="_Default" %>
<%@ Import Namespace = "System.Text" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transit ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号