说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。 编译器错误信息: ASPNET: 请确保此代码文件中定义的类与“inherits”属性匹配,并且该类扩展的基类(例如 Page 或 UserControl)是正确的。源错误: 行 15: /// ST_Admin_login 的摘要说明。
行 16: /// </summary>
行 17: public partial class leavelogin : System.Web.UI.Page
行 18: {
行 19: ST_DataBase ST_database = new ST_DataBase();
aspx 代码如下
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="leavelogin.aspx.cs" Inherits="productpic_leavelogin" %><%@ Register Src="headtype.ascx" TagName="headtype" TagPrefix="uc2" %><%@ Register Src="head.ascx" TagName="head" TagPrefix="uc1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table align="center" style="width: 715px; height: 180px">
<tr>
<td align="center" style="width: 722px; height: 50px">
<uc1:head ID="Head1" runat="server" />
</td>
</tr>
<tr>
<td align="center" valign="top" style="width: 722px; height: 50px">
<uc2:headtype ID="Headtype1" runat="server" />
</td>
</tr>
<tr>
<td align="center" style="width: 100px; height: 342px;">
<div style="z-index: 101; left: 366px; background-image: url(images/1.gif); width: 286px;
position: absolute; top: 344px; height: 216px">
<br />
用户名:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<br />
密 码:<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />
<br />
性别:<asp:RadioButton ID="RadioButton1" runat="server" Checked="True" GroupName="sex"
Text="男" />
<asp:RadioButton ID="RadioButton2" runat="server" GroupName="sex" Text="女" /><br />
<br />
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="登陆" />
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="重置" /><br />
</div>
</td>
</tr>
<tr>
<td align="center" style="width: 100px; height: 324px;">
</td>
</tr>
</table>
<div align="center" style="z-index: 102; left: 300px; width: 418px; position: absolute;
top: 281px; height: 65px">
<br />
<br />
<span style="font-size: 16pt; color: #ff0000; font-family: 华文彩云">本页面登陆只有客服人员有权限进入</span></div>
</div>
</form>
</body>
</html>asp.cs代码如下
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;namespace ST_GROUP.EnterpriseOnlineInfoManage
{
/// <summary>
/// ST_Admin_login 的摘要说明。
/// </summary>
public partial class leavelogin : System.Web.UI.Page
{
ST_DataBase ST_database = new ST_DataBase(); protected void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
} #region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
} /// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{ }
#endregion protected void Button1_Click(object sender, System.EventArgs e)
{
string ST_strsql = "select * from ST_tUser where ST_username = '" + TextBox1.Text + "' and ST_userpassword = '" + TextBox2.Text + "' and ST_userclass = 3";
DataTable ST_dt = new DataTable();
ST_dt = ST_database.ReadTable(ST_strsql);
if (ST_dt.Rows.Count > 0)
{
Session["admin"] = adminname.Text;
Response.Redirect("ST_Admin_index.aspx");
}
else
{
adminpass.Text = "";
}
}
protected void adminname_TextChanged(object sender, EventArgs e)
{ }
}
}
帮我改改,是那个问题 在线急等
行 16: /// </summary>
行 17: public partial class leavelogin : System.Web.UI.Page
行 18: {
行 19: ST_DataBase ST_database = new ST_DataBase();
aspx 代码如下
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="leavelogin.aspx.cs" Inherits="productpic_leavelogin" %><%@ Register Src="headtype.ascx" TagName="headtype" TagPrefix="uc2" %><%@ Register Src="head.ascx" TagName="head" TagPrefix="uc1" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table align="center" style="width: 715px; height: 180px">
<tr>
<td align="center" style="width: 722px; height: 50px">
<uc1:head ID="Head1" runat="server" />
</td>
</tr>
<tr>
<td align="center" valign="top" style="width: 722px; height: 50px">
<uc2:headtype ID="Headtype1" runat="server" />
</td>
</tr>
<tr>
<td align="center" style="width: 100px; height: 342px;">
<div style="z-index: 101; left: 366px; background-image: url(images/1.gif); width: 286px;
position: absolute; top: 344px; height: 216px">
<br />
用户名:<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<br />
密 码:<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox><br />
<br />
性别:<asp:RadioButton ID="RadioButton1" runat="server" Checked="True" GroupName="sex"
Text="男" />
<asp:RadioButton ID="RadioButton2" runat="server" GroupName="sex" Text="女" /><br />
<br />
<br />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="登陆" />
<asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="重置" /><br />
</div>
</td>
</tr>
<tr>
<td align="center" style="width: 100px; height: 324px;">
</td>
</tr>
</table>
<div align="center" style="z-index: 102; left: 300px; width: 418px; position: absolute;
top: 281px; height: 65px">
<br />
<br />
<span style="font-size: 16pt; color: #ff0000; font-family: 华文彩云">本页面登陆只有客服人员有权限进入</span></div>
</div>
</form>
</body>
</html>asp.cs代码如下
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;namespace ST_GROUP.EnterpriseOnlineInfoManage
{
/// <summary>
/// ST_Admin_login 的摘要说明。
/// </summary>
public partial class leavelogin : System.Web.UI.Page
{
ST_DataBase ST_database = new ST_DataBase(); protected void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
} #region Web 窗体设计器生成的代码
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。
//
InitializeComponent();
base.OnInit(e);
} /// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{ }
#endregion protected void Button1_Click(object sender, System.EventArgs e)
{
string ST_strsql = "select * from ST_tUser where ST_username = '" + TextBox1.Text + "' and ST_userpassword = '" + TextBox2.Text + "' and ST_userclass = 3";
DataTable ST_dt = new DataTable();
ST_dt = ST_database.ReadTable(ST_strsql);
if (ST_dt.Rows.Count > 0)
{
Session["admin"] = adminname.Text;
Response.Redirect("ST_Admin_index.aspx");
}
else
{
adminpass.Text = "";
}
}
protected void adminname_TextChanged(object sender, EventArgs e)
{ }
}
}
帮我改改,是那个问题 在线急等
解决方案 »
- 如何在gridview上如何增加自定义列?列中显示超级链接的内容
- 怎么用程序创建sqlserver 用户名和密码
- 根据用户积分查询等级
- 求MCTS微软认证考试中文学习资料,谢谢!
- 谁能解决在使用GROVE2.0与OBJECTDATASOURCE时的更新问题?
- web.config中的一个小问题,请帮助解答,谢谢!
- 数据验证正则表达式
- 如何在一个webforms中调用另一个webform中的东西
- 麻烦各位推荐个网站 讲web页打印的
- 简单问题。出错在哪?是不是那书上用的版本比较低??
- |zyciis| 在做工行网上支付的接口的时候提交过去的内容变成乱码 怎么回事 大家有没有做过
- Class 中定义一个属性和声明一个 Public 类型的变量有什么区别?
还有一个页面的类名和这个类名重复了。