Comm不存在
public partial class shop_check : System.Web.UI.Page
{
private DataSet ds0;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["ShopID"] == null)
{
Response.Redirect("../default.aspx");
}
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
string cardcode = this.txtuserid.Text.Trim();
string TQbianhao = this.txtTjbh.Text.Trim();
if (cardcode == "" || TQbianhao == "")
{
return;
}
string sSQL = "";
sSQL += " select a.orderId,ProductId,SuperProductId,SourceScore,ProductCount,TradeId FROM ProductInfo a left join OrderInfo b on a.orderId=b.orderId ";
sSQL += " where a.orderID='" + TQbianhao + "' ";
ds0 = Comm.SqlHelper.ExecuteDataSet(Comm.SqlHelper.ConnectionString, CommandType.Text, sSQL);
GridView1.DataSource = ds0.Tables[0];
GridView1.DataBind();
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
GridView1.DataSource = ds0;
GridView1.DataBind();
}
}
调试运行的时候,为什么显示 当前上下文不存在名称Comm 大侠们帮忙看看是什么原因。
------解决方案--