急求答案,十万火急!!!!
//我的定单信息
protected void GetAllOrderInfo()
{
// string goods = Request.QueryString["orderId"].ToString();
goods = Request.QueryString["orderId"];
string sql = string.Format("select * from orders where goods='{0}'", goods);
DataSet ds = SqlDatabase.ExecuteDataset(DataProvider.ConnectionString,CommandType.Text,sql);
dllMyOrderInfo.DataSource = ds;
dllMyOrderInfo.DataBind();
dllMyOrderInfo.Visible = true;
}
这是报的错误
Line 598:
Line 599: // 填充DataSet.
Line 600: da.Fill(ds);
Line 601:
Line 602: cmd.Parameters.Clear();
Source File: d:\wwwroot\mmrddnew\App_Code\database\SqlDatabase.cs Line: 600
Stack Trace:
[SqlException (0x80131904): 子查询返回的值多于一个。当子查询跟随在 =、!=、<、<=、>、>= 之后,或子查询用作表达式时,这种情况是不允许的。]
查出来有2条数据,
我主要是想得到订单信息!!1条就可以了!!
请问有什么办法解决!!急求解决!!!