当前位置: 代码迷 >> ASP.NET >> Comm不存在,该如何处理
  详细解决方案

Comm不存在,该如何处理

热度:6879   发布时间:2013-02-25 00:00:00.0
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 大侠们帮忙看看是什么原因。
------解决方案--------------------------------------------------------
没有导入命名空间
------解决方案--------------------------------------------------------