<%@ WebHandler Language="C#" Class="ChangePwd" %>

using System;
using System.Web;
using System.Web.SessionState;
public class ChangePwd : IHttpHandler, IReadOnlySessionState
{
   
    public void ProcessRequest (HttpContext context)

   {
        context.Response.ContentType = "text/plain";
        OperUser ou = new OperUser();
        if (ou.ChangeWsPassword(context.Session["ws_user"].ToString(),context.Request.QueryString["pwd"].ToString()))
        {
            context.Response.Write("true");
        }
        else
        {
            context.Response.Write("flase");
        }
       
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }

}

加上红色部分就可以了


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/yefengzhixia/archive/2009/06/12/4263112.aspx

相关文章:

  • 2022-12-23
  • 2021-08-30
  • 2021-06-22
  • 2022-12-23
  • 2021-09-07
  • 2021-07-31
  • 2021-10-18
猜你喜欢
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案