public void ProcessRequest(HttpContext context) { //string s = ""; context.Response.ContentType = "text/plain"; // context.Response.Write("Hello World");' string username = context.Request.Form["txtn"].ToString(); string userPwd = context.Request["txtp"].ToString(); loginBLL bll = new loginBLL(); if (userPwd == bll.getadminPwd(username)) { context.Response.Redirect("../default.aspx"); } else { context.Response.Redirect("../login.aspx"); } }