public SqlDataReader ProductDetail(int ID)
{
// Create Instance of Connection and Command Object
SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ESMS"]);
SqlCommand myCommand = new SqlCommand("productDetail", myConnection);
// Mark the Command as a SPROC
myCommand.CommandType = CommandType.StoredProcedure;
// Add Parameters to SPROC
SqlParameter parameterID = new SqlParameter("@ID", SqlDbType.Int );
parameterID.Value = ID;
myCommand.Parameters.Add(parameterID);
// Execute the command
myConnection.Open();
SqlDataReader result = myCommand.ExecuteReader(CommandBehavior.CloseConnection);
// Return the datareader
return result;
}
public SqlDataReader ProductImage(int ID)
{
// Create Instance of Connection and Command Object
SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["ESMS"]);
SqlCommand myCommand = new SqlCommand("productImage", myConnection);
// Mark the Command as a SPROC
myCommand.CommandType = CommandType.StoredProcedure;
// Add Parameters to SPROC
SqlParameter parameterID = new SqlParameter("@ID", SqlDbType.Int );
parameterID.Value = ID;
myCommand.Parameters.Add(parameterID);
// Execute the command
myConnection.Open();
SqlDataReader result = myCommand.ExecuteReader(CommandBehavior.CloseConnection);
// Return the datareader
return result;
}
6.2商城管理模块
6.2.1商城产品目录配置
a. 商城产品目录配置需求
配置产品目录,需要收集足够的产品类别信息,在该电子商城中,我们采用三层数级目录。
b. 商城产品目录配置模块设计
<< 上一页 [11] [12] [13] [14] [15] [16] [17] [18] [19] [20] ... 下一页 >>
ASP+SQL SERVER2000电子商城系统 第20页下载如图片无法显示或论文不完整,请联系qq752018766