易截截图软件、单文件、免安装、纯绿色、仅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控件开发基础之实现控件集合属性

集合属性相信大家都很熟悉也很常用,如DropDownList,ListBox等控件
﹤asp:DropDownList ID="DropDownList1" runat="server"﹥              ﹤asp:ListItem﹥测试1﹤/asp:ListItem﹥    & ......

asp.net点击按钮关闭窗口

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

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

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

asp.net使用cookies

方法1:
Response.Cookies["username"].Value="gjy";
Response.Cookies["username"].Expires=DateTime.Now.AddDays(1);
方法2:
System.Web.HttpCookie newcookie=new HttpCookie("username");
newcookie.Value="gjy";
newcookie.Expires=DateTime.Now.AddDays(1);
Response.AppendCookie(newcookie);
创建带 ......

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号