类、结构或接口成员声明中的标记“;”无效
.net初学,有个错误帮忙解决下publicclassUserManage_UserMasterPage:MasterPage顺便帮我注释下:后面代表是什么usingSy...
.net 初学,有个错误 帮忙解决下
public class UserManage_UserMasterPage : MasterPage
顺便帮我注释下: 后面代表是什么
using System;
using System.Web;
using System.Web.Profile;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using web.WebBase;
public class UserManage_UserMasterPage : MasterPage
{
protected System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolder;
protected UserControls_Footer Footer1;
protected HtmlForm form1;
protected HtmlHead Head1;
protected UserControls_Header Header1;
protected UserControls_HeaderSearch HeaderSearch;
protected string power = "";
protected string userId = "";
protected void Page_Load(object sender, EventArgs e)
{
this.Page.Title = "用户管理中心";
UserCookie cookie = new UserCookie();
if (cookie.UserId != "")
{
this.userId = cookie.UserId;
this.power = cookie.Power;
}
else
{
base.Response.Redirect("/User/login.aspx?url=" + HttpContext.Current.Request.Url);
}
}
protected HttpApplication ApplicationInstance
{
get
{
return this.Context.ApplicationInstance;
}
}
protected DefaultProfile Profile
{
get
{
return (DefaultProfile) this.Context.Profile;
}
}
}
错误1 应输入 {
错误 2 类、结构或接口成员声明中的标记“:”无效
错误3 类、结构或接口成员声明中的标记“{”无效
3个错误都在public class UserManage_UserMasterPage : MasterPage 这行和下一行 展开
public class UserManage_UserMasterPage : MasterPage
顺便帮我注释下: 后面代表是什么
using System;
using System.Web;
using System.Web.Profile;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using web.WebBase;
public class UserManage_UserMasterPage : MasterPage
{
protected System.Web.UI.WebControls.ContentPlaceHolder ContentPlaceHolder;
protected UserControls_Footer Footer1;
protected HtmlForm form1;
protected HtmlHead Head1;
protected UserControls_Header Header1;
protected UserControls_HeaderSearch HeaderSearch;
protected string power = "";
protected string userId = "";
protected void Page_Load(object sender, EventArgs e)
{
this.Page.Title = "用户管理中心";
UserCookie cookie = new UserCookie();
if (cookie.UserId != "")
{
this.userId = cookie.UserId;
this.power = cookie.Power;
}
else
{
base.Response.Redirect("/User/login.aspx?url=" + HttpContext.Current.Request.Url);
}
}
protected HttpApplication ApplicationInstance
{
get
{
return this.Context.ApplicationInstance;
}
}
protected DefaultProfile Profile
{
get
{
return (DefaultProfile) this.Context.Profile;
}
}
}
错误1 应输入 {
错误 2 类、结构或接口成员声明中的标记“:”无效
错误3 类、结构或接口成员声明中的标记“{”无效
3个错误都在public class UserManage_UserMasterPage : MasterPage 这行和下一行 展开
2个回答
光点科技
2023-08-15 广告
2023-08-15 广告
通常情况下,我们会按照结构模型把系统产生的数据分为三种类型:结构化数据、半结构化数据和非结构化数据。结构化数据,即行数据,是存储在数据库里,可以用二维表结构来逻辑表达实现的数据。最常见的就是数字数据和文本数据,它们可以某种标准格式存在于文件...
点击进入详情页
本回答由光点科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询