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 大侠们帮忙看看是什么原因。
{ 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 大侠们帮忙看看是什么原因。
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
有的
如果是缺少dll,应该怎么办。
我每次运行网站的时候都有一个警告 无法更新自动刷新引用“org.in2bits.myxls.dll”。 找不到程序集“J:\Code\ASP.NET2.0\C#生成Excel报表\myxls-0.6.2-net2_0-bin\org.in2bits.MyXls.dll”
J:\VIP System(online)\Bin\org.in2bits.myxls.dll.refresh 是什么原因
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using Comm;
这样也不行找不到类型或命名空间名称“Comm”(是否缺少 using 指令或程序集引用?)
根本就没引用这个。要么没有实现SqlHelper这个类吧。
放到VIP System(online)\Bin 文件夹下面然后项目右键添加引用。、
或者有comm.dll文件 看bin有没有comm.dll文件
bin文件夹下有这个文件,添加引用,引用那个呢