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

ASP.NET网站与Discuz!NT论坛整合

步骤1:
引入5个DLL到项目中
分别是
using Discuz.Common;
using Discuz.Forum;
using Discuz.Config;
using Discuz.Entity;
using Discuz.Data;
步骤2: 
   public class Discuz_NT
    {
        public static ArrayList Login(string username, string password, int question, string answer)
        {
            Discuz.Config.GeneralConfigInfo config = Discuz.Config.GeneralConfigs.GetConfig();
            OnlineUserInfo oluserinfo = OnlineUsers.UpdateInfo(config.Passwordkey, config.Onlinetimeout);
            int olid = oluserinfo.Olid;
            ArrayList result = new ArrayList();
            int uid = -1;
            //如果设置中Discuz!NT的密码模式为动网密码兼容模式(一般仅用于从动网数据转换来的论坛)
            if (config.Passwordmode == 1)
            {
                //如果后台设置了必须使用安全提问
                if (config.Secques == 1)
                {
                    uid = Users.CheckDvBbsPasswordAndSecques(username, password, question, answer);
                }
         &n


相关文档:

Explained: Forms Authentication in ASP.NET 2.0

原地址:
http://msdn.microsoft.com/en-us/library/aa480476.aspx
IIS Authentication
ASP.NET authentication is a two-step process. First, Internet Information Services (IIS) authenticates the user and creates a Windows token to represent the user. IIS determines the authentication mode that it shoul ......

asp.net mvc ajax 外部js 异步递交 form的实现

页面文件类似:
<% using (Ajax.BeginForm("AjaxUpdate", 123, new AjaxOptions {
Confirm = "confirm str", LoadingElementId = "idLoading", UpdateTargetId
= "textEntered", OnSuccess = "validateForm" },new{id="idMyForm"}))
  &nbs ......

ASP.NET中将数据输出到Excel

在开发ISO文件管理系统的时候,曾经遇到过要将ASPX直接输出到EXCEL的需求,现将经验所得与大家分享。 其实,利用ASP.NET输出指定内容的WORD、EXCEL、TXT、HTM等类型的文档很容易的。主要分为三步来完成。
  一、定义文档类型、字符编码
Response.Clear(); 
Response.Buffer= true; 
Response ......

浅析ASP.NET的IIS映射

ASP.NET默认扩展名为.aspx,可是我们看到许多网站的扩展名很特别,比如校内的do。个性之余还可以实现简单的伪静态(即把后缀改为html)不过相对URLRewriter来说,是有点简陋(只能改掉连接中的.aspx),不过不失为一种方法。下面我们就来实现他!
    先来说一下ASP.NET 1.1中的方法:
    ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号