错误 1 找不到类型或命名空间名称“Momdels”(是否缺少 using 指令或程序集引用)
usingSystem;usingSystem.Collections;usingSystem.Configuration;usingSystem.Xml.Linq;.....
using System;using System.Collections;using System.Configuration;using System.Xml.Linq;
......using Momdels;using BLL;
namespace ui.admin{ public partial class aminlogin : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { do { SerialNumber1.Create(); } while (SerialNumber1.SN.Length != 4); } } protected void ImageButton1_Click(object sender, ImageClickEventArgs e) {
if (!IsPostBack) { do { SerialNumber1.Create(); } while (SerialNumber1.SN.Length != 4); }
if (!checkcode()) { Response.Write("<script>alert('验证码错误!')</script>"); } else { admintable adt = new admintable(); adt.Adminname = TextBox1.Text; adt.Adminpwd = TextBox2.Text; admintable adt1 = adminmanger.adminlogin(adt); if (adt1 != null) {
// Response.Redirect("index.aspx"); //Response.Write("<script>alert('用户名或密码正确')</script>"); Response.Redirect("zhanshi.aspx"); } else { Response.Write("<script>alert('用户名或密码不正确')</script>"); } }} 展开
......using Momdels;using BLL;
namespace ui.admin{ public partial class aminlogin : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { do { SerialNumber1.Create(); } while (SerialNumber1.SN.Length != 4); } } protected void ImageButton1_Click(object sender, ImageClickEventArgs e) {
if (!IsPostBack) { do { SerialNumber1.Create(); } while (SerialNumber1.SN.Length != 4); }
if (!checkcode()) { Response.Write("<script>alert('验证码错误!')</script>"); } else { admintable adt = new admintable(); adt.Adminname = TextBox1.Text; adt.Adminpwd = TextBox2.Text; admintable adt1 = adminmanger.adminlogin(adt); if (adt1 != null) {
// Response.Redirect("index.aspx"); //Response.Write("<script>alert('用户名或密码正确')</script>"); Response.Redirect("zhanshi.aspx"); } else { Response.Write("<script>alert('用户名或密码不正确')</script>"); } }} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询