C
CdnRebel via DotNetMonster.com
The type or namespace name 'UpdateProduct' could not be found (are you
missing a using directive or an assembly reference?)
Hi,
I am new to ASP.NET, C# and Visual Studio 2005. I am just learning to
compile and Visual Studio 2005 converted the programs to a newer version
which is why I am getting compile errors. The code with the problem is below:
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;
using System.Data.SqlClient;
namespace Furniture
{
/// <summary>
/// Summary description for UpdateProduct.
/// </summary>
public partial class Migrated_UpdateProduct : UpdateProduct
{
protected System.Web.UI.WebControls.Label lblMessage;
protected System.Web.UI.WebControls.TextBox txtProductName;
protected System.Web.UI.WebControls.TextBox txtProductDescription;
protected System.Web.UI.WebControls.CheckBox
chkDisplayedOnThumbnailPage;
protected System.Web.UI.WebControls.TextBox txtOrderNumber;
protected System.Web.UI.WebControls.CheckBox chkActive;
protected System.Web.UI.HtmlControls.HtmlInputFile fileUpload;
protected System.Web.UI.WebControls.DropDownList dplProduct;
protected System.Web.UI.WebControls.HyperLink lnkTopRight;
protected System.Web.UI.HtmlControls.HtmlInputFile fileThumbnail;
protected System.Web.UI.WebControls.RequiredFieldValidator
Requiredfieldvalidator3;
protected void Page_Load(object sender, System.EventArgs e)
{
if(Session["SessionUserID"] != null)
{
lnkTopRight.Text="ADMINISTRATION";
lnkTopRight.NavigateUrl="ProductManagement.aspx";
}
else
{
lnkTopRight.Text="LOG IN";
lnkTopRight.NavigateUrl="login.aspx";
}
if(Request["ProductID"] !=null)
{
intProductID=int.Parse(Request["ProductID"].ToString());
}
if(!IsPostBack)
{
GetProductInfo(intProductID);
LoadProductList(intProductID);
}
}
The above are lines 10 to 66 and the error is on line 27 which is this line:
public partial class Migrated_UpdateProduct : UpdateProduct
Can someone please help? The website owner is under the false impression
that he will need someone to start from scratch with the changes. I believe
that the changes can be completed as soon as I get a clean compile. I could
really use some one on one help, but I have none.
Thanks!!!
missing a using directive or an assembly reference?)
Hi,
I am new to ASP.NET, C# and Visual Studio 2005. I am just learning to
compile and Visual Studio 2005 converted the programs to a newer version
which is why I am getting compile errors. The code with the problem is below:
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;
using System.Data.SqlClient;
namespace Furniture
{
/// <summary>
/// Summary description for UpdateProduct.
/// </summary>
public partial class Migrated_UpdateProduct : UpdateProduct
{
protected System.Web.UI.WebControls.Label lblMessage;
protected System.Web.UI.WebControls.TextBox txtProductName;
protected System.Web.UI.WebControls.TextBox txtProductDescription;
protected System.Web.UI.WebControls.CheckBox
chkDisplayedOnThumbnailPage;
protected System.Web.UI.WebControls.TextBox txtOrderNumber;
protected System.Web.UI.WebControls.CheckBox chkActive;
protected System.Web.UI.HtmlControls.HtmlInputFile fileUpload;
protected System.Web.UI.WebControls.DropDownList dplProduct;
protected System.Web.UI.WebControls.HyperLink lnkTopRight;
protected System.Web.UI.HtmlControls.HtmlInputFile fileThumbnail;
protected System.Web.UI.WebControls.RequiredFieldValidator
Requiredfieldvalidator3;
protected void Page_Load(object sender, System.EventArgs e)
{
if(Session["SessionUserID"] != null)
{
lnkTopRight.Text="ADMINISTRATION";
lnkTopRight.NavigateUrl="ProductManagement.aspx";
}
else
{
lnkTopRight.Text="LOG IN";
lnkTopRight.NavigateUrl="login.aspx";
}
if(Request["ProductID"] !=null)
{
intProductID=int.Parse(Request["ProductID"].ToString());
}
if(!IsPostBack)
{
GetProductInfo(intProductID);
LoadProductList(intProductID);
}
}
The above are lines 10 to 66 and the error is on line 27 which is this line:
public partial class Migrated_UpdateProduct : UpdateProduct
Can someone please help? The website owner is under the false impression
that he will need someone to start from scratch with the changes. I believe
that the changes can be completed as soon as I get a clean compile. I could
really use some one on one help, but I have none.
Thanks!!!