我有一个ASP .Net Web应用程序,我正在将其转换为ASP .net网站,在转换过程中,我在从母版页访问页面后面的代码时遇到错误。
if (Master.Page is ProjectRequestss)
{
ProjectRequestss pr = (ProjectRequestss)Master.Page;
Project_ID = Convert.ToString(pr.Project_ID);
Request_Type_ID = Convert.ToString(pr.Request_Type_ID);
LLB_Proj_Detail_ID = Convert.ToString(pr.LB_Proj_Detail_ID);
JobID = Convert.ToString(pr.JobID);
}
这曾经在ASP .net web应用程序中正常工作,但它在ASP .net网站中不起作用。有关在网站上做同样事情的想法。
错误11找不到类型或命名空间名称'ProjectRequestss'(您是否缺少using指令或程序集引用?)D:\ My Work \ Application \ Web \ dadadsfsadfdr module seperation \ dadadsfsadfd \ dadadsfsadfd .WebUIWebsite \ LandBase \ dadadsfsadfd.master.cs 41 36 D:... \\ dadadsfsadfd.WebUIWebsite \
错误12找不到类型或命名空间名称'ProjectRequestss'(您是否缺少using指令或程序集引用?)D:\ My Work \ Application \ Web \ dadadsfsadfd module seperation \ dadadsfsadfd \ dadadsfsadfd .WebUIWebsite \ LandBase \ dadadsfsadfd.master.cs 43 21 D:... \\ dadadsfsadfd.WebUIWebsite \
错误13找不到类型或命名空间名称'ProjectRequestss'(您是否缺少using指令或程序集引用?)D:\ My Work \ Application \ Web \ ISO Tracker module seperation \ dadadsfsadfd \ dadadsfsadfd.WebUIWebsite \ LandBase \ dadadsfsadfd.master.cs 43 42 D:... \\ dadadsfsadfd.WebUIWebsite \
public partial class ProjectRequestss:abcdfdfd_Page { #region属性
private bool Is_Update
{
get
{
if (ViewState["Is_Update"] == null || ViewState["Is_Update"].ToString() == string.Empty)
return false;
else
return Convert.ToBoolean(ViewState["Is_Update"].ToString());
}
set
{
ViewState["Is_Update"] = value.ToString();
}
}
public int Project_ID
{
get
{
if (ViewState["Project_ID"] == null || ViewState["Project_ID"].ToString() == string.Empty)
return -1;
else
return Convert.ToInt32(ViewState["Project_ID"]);
}
set
{
ViewState["Project_ID"] = value.ToString();
}
}
public int Request_Type_ID
{
get
{
if (ViewState["Request_Type_ID"] == null || ViewState["Request_Type_ID"].ToString() == string.Empty)
return -1;
else
return Convert.ToInt32(ViewState["Request_Type_ID"]);
}
set
{
ViewState["Request_Type_ID"] = value.ToString();
}
}
public int LB_Proj_Detail_ID
{
get
{
if (ViewState["LB_Proj_Detail_ID"] == null || ViewState["LB_Proj_Detail_ID"].ToString() == string.Empty)
return -1;
else
return Convert.ToInt32(ViewState["LB_Proj_Detail_ID"]);
}
set
{
ViewState["LB_Proj_Detail_ID"] = value.ToString();
}
}
public int JobID
{
get
{
if (ViewState["JobID"] == null || ViewState["JobID"].ToString() == string.Empty)
return -1;
else
return Convert.ToInt32(ViewState["JobID"]);
}
set
{
ViewState["JobID"] = value.ToString();
}
}
public string JTS_ID
{
get
{
if (ViewState["JTS_ID"] == null || ViewState["JTS_ID"].ToString() == string.Empty)
return "-1";
else
return Convert.ToString(ViewState["JTS_ID"]);
}
set
{
ViewState["JTS_ID"] = value.ToString();
}
}
public string Job_Status_ID
{
get
{
if (ViewState["Job_Status_ID"] == null || ViewState["Job_Status_ID"].ToString() == string.Empty)
return "-1";
else
return Convert.ToString(ViewState["Job_Status_ID"]);
}
set
{
ViewState["Job_Status_ID"] = value.ToString();
}
}
#endregion
}