jquery ajax 编写登入界面



    
    
    
    


    

  test.ashx  

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace WebApplication1
{
    /// 
    /// test 的摘要说明
    /// 
    public class test : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            if (context.Request.QueryString["acc"] == null)
            {
                HttpContext.Current.Response.Write("acc");
                return;
            }
            if (HttpContext.Current.Request.QueryString["acc"].ToString() == "")
            {
                HttpContext.Current.Response.Write("acc=''");
                return;
            }

            if (context.Request.QueryString["pwd"] == null)
            {
                HttpContext.Current.Response.Write("pwd");
                return;
            }
            if (HttpContext.Current.Request.QueryString["pwd"].ToString() == "")
            {
                HttpContext.Current.Response.Write("pwd=''");
                return;
            }


            if (context.Request.QueryString["code"] == null)
            {
                HttpContext.Current.Response.Write("code");
                return;
            }
            if (HttpContext.Current.Request.QueryString["code"].ToString() == "")
            {
                HttpContext.Current.Response.Write("code=''");
                return;
            }
            HttpContext.Current.Response.Write("yes");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

  成功  嗯哈

转载于:https://www.cnblogs.com/Rock-Lee/archive/2013/04/11/3013802.html

你可能感兴趣的:(javascript,xhtml,ViewUI)