' Set the discreet value to the customers name.
pdvCustomerName.Value = cbCustomers.Text ' Add it to the parameter collection.
pvCollection.Add(pdvCustomerName) ' Apply the current parameter values.
rptCustomersOrders.DataDefinition.ParameterFields("@CustomerName").ApplyCurrentValues(pvCollection)
pdvCustomerName.Value = cbCustomers.Text ' Add it to the parameter collection.
pvCollection.Add(pdvCustomerName) ' Apply the current parameter values.
rptCustomersOrders.DataDefinition.ParameterFields("@CustomerName").ApplyCurrentValues(pvCollection)
解决方案 »
- C#截取视频里的图片
- asp.net gridview怎么取它的数据源呀,我取不了的,给个例子好吗?
- 刚学ASP。NET 请前辈指点一个与数据库有关的问题
- 求找回用户密码模块代码
- 拜师了:asp.net入门
- 100分 求个小软件
- asp如何取ASP.NET里面的session变量,请各位高手指教!
- 问一个关于gridview,datalist的问题
- 如何去掉TextBox的下拉选择功能?
- WEB工程发布的问题。。。。
- 我在安装asp.net的示例程序的时候,log纪录错误!错误如下!帮我看看!谢谢!
- 在用Web页方式打印的时候,如果要打印的数据被Datagrid分为了好几页,问能否实现一次打印?请好心人帮忙啊!
ParameterValues oParam1 = new ParameterValues();
ParameterDiscreteValue oPdv1 = new ParameterDiscreteValue();
oPdv1.Value = sLineNo;--這里就是你text的值
oParam1.Add(oPdv1);
oRpt.DataDefinition.ParameterFields["LINE_NO"].ApplyCurrentValues(oParam1);