asp.net 企业门户网编译错,各位帮帮忙
来源:互联网 发布:什么是网络大学 编辑:程序博客网 时间:2024/04/29 10:39
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Drawing;
using System.Data.SqlClient;//引入命名空间
using EP;
public partial class _Default : System.Web.UI.Page
{
EP ep = new EP();//实例化一个对象
protected void Page_Load(object sender, EventArgs e)
{
if (Session["UserName"] != null || Session["UserPwd"] != null)
{
this.LblInfo.Text = "您好! " + Session["UserName"].ToString() + " 欢迎您登录本网站!";
Panel2.Visible = true;
Panel1.Visible = false;
}
else
{
Panel2.Visible = false;
Panel1.Visible = true;
}
ep.EXECDataList(dlSoftIntro, "select top 4 * from tb_Tools order by UPTime desc", "Id");
}
protected void ImgBtnLogin_Click(object sender, ImageClickEventArgs e)
{
if (this.TxtUserName.Text == string.Empty)
{
Response.Write("<script language=javascript>alert('用户名不能为空!');location='Default.aspx'</script>");
return;
}
else
{
if (this.TxtCode.Text == Request.Cookies["CheckCode"].Value)
{
string SqlStr = "select count(*) from tb_UserLogin where UserName='" + this.TxtUserName.Text + "'and UserPwd='" + this.TxtUserPwd.Text + "'";
int a = ep.EXECuteScalar(SqlStr);
if (a >= 1)
{
Session["UserName"] = this.TxtUserName.Text;
Session["UserPwd"] = this.TxtUserPwd.Text;
Response.Write("<script lanuage='javaScript'>alert('恭喜您!!登录成功!');location='Default.aspx'</script>");//弹出对话框显示“恭喜您!!登录成功!”
Panel2.Visible = true;
Panel1.Visible = false;
}
else
{
Response.Write("<script lanuage='javaScript'>alert('很遗憾!!登录失败!');location='Default.aspx'</script>");//弹出对话框显示“很遗憾!!登录失败!”
}
}
else
{
Response.Write("<script language=javascript>alert('输入的验证码不正确!');location='Default.aspx'</script>");
}
}
}
protected void LinBtnReg_Click(object sender, EventArgs e)
{
Response.Redirect("~/Register/RegPro.aspx");//跳转到注册协议页面
}
protected void LinBtnforgetPwd_Click(object sender, EventArgs e)
{
Response.Redirect("~/FindPwd/Findpwd1.aspx");//跳转到找回密码第一步的页面中
}
protected void LinBtnAdmin_Click(object sender, EventArgs e)
{
Response.Redirect("~/AdminLogin.aspx");//跳转到管理员登录页面
}
protected void dlSoftIntro_ItemCommand(object source, DataListCommandEventArgs e)
{
if (e.CommandName == "Xiangxi")
{
Response.Redirect("list_softdownload.aspx");//将页面跳转到list_softdownload.aspx页面中
}
}
protected void LinBtnMoreSoft_Click(object sender, EventArgs e)
{
Response.Redirect("More_Soft.aspx");//跳转到More_Soft.aspx页面中
}
protected void ImgBtnCancel_Click(object sender, ImageClickEventArgs e)
{
/*清空文本框*/
this.TxtUserName.Text = "";
this.TxtUserPwd.Text = "";
this.TxtCode.Text = "";
}
protected void LinBtnExit_Click(object sender, EventArgs e)
{
Session["UserName"] = null;
Session["UserPwd"] = null;
this.Panel1.Visible = true;
this.Panel2.Visible = false;
}
}
程序报错,怎么回事,各位帮帮忙哦,万分感谢!弄好的,我直接加分
错误 1 找不到类型或命名空间名称“EP”(是否缺少 using 指令或程序集引用?) F:/Enterprise/control/New.ascx.cs 15
错误 2 找不到类型或命名空间名称“EP”(是否缺少 using 指令或程序集引用?) F:/Enterprise/control/HyperlinkControl.ascx.cs 15
错误 3 找不到类型或命名空间名称“EP”(是否缺少 using 指令或程序集引用?) F:/Enterprise/control/MarqueeImage.ascx.cs 16
- asp.net 企业门户网编译错,各位帮帮忙
- Asp.net门户链接
- asp.net门户源码
- 各位大侠,帮帮忙了!!!
- 各位大虾帮帮忙!!!
- 各位大侠帮帮忙!
- 各位大侠帮帮忙!
- 各位大侠帮帮忙!
- 各位大虾帮帮忙!!!
- 各位高手帮帮忙吧
- 各位,帮帮忙看一下
- 各位老师帮帮忙..急!
- 失业了,各位帮帮忙?
- 各位ggmm进来帮帮忙
- 请各位高手帮帮忙
- 求救 各位帮帮忙
- 请各位帮帮忙
- 各位大侠,帮帮忙撒!
- 实现VS平台账号注册机
- Serial Port Complete: COM Ports, USB Virtual COM Ports, and Ports for Embedded Systems
- 一个C#封装的加密解密类代码
- Emerging Technologies in Wireless LANs: Theory, Design, and Deployment
- Flash + After Effects
- asp.net 企业门户网编译错,各位帮帮忙
- openSUSE Linux Unleashed
- Microsoft ISA Server 2006 Unleashed
- 亲历惊心48小时,抢救35亿交易数据
- ASP.NET 3.5 Unleashed
- Asp.Net建立Access数据库连接
- Deploying Voice over Wireless LANs (Networking Technology)
- The Art & Science of JavaScript [ILLUSTRATED]
- 网友原创:强健周之歌MV