用的detailview 绑定SQL数据源
SqlDataSource1.SelectCommand = "select top 1 * from table 1 where u_id=100672";
DetailsView1.DataBind();
这样没有问题,但如果是 100672 改成 1006720
SqlDataSource1.SelectCommand = "select top 1 * from table 1 where u_id=1006720";
DetailsView1.DataBind();
就报出错
...全文
13416打赏收藏
新手的问题,请高手看看
用的detailview 绑定SQL数据源 SqlDataSource1.SelectCommand = "select top 1 * from table 1 where u_id=100672"; DetailsView1.DataBind(); 这样没有问题,但如果是 100672 改成 1006720 SqlDataSource1.SelectCommand = "select top 1 * from table 1 where u_id=1006720"; DetailsView
string strx = Request.QueryString["x"];
if (strx != null)
{
SqlDataSource1.SelectCommand = "select top 1 * from table where u_id='1006720' and u_status =1";//str;