我必须将4个参数传递给ssrs报告,这就是我的网址看起来的方式
Response.Redirect("http://ups117850/rpt/Pages/Rept.aspx?ItemPath=%2feMaaS%2feMaaS&rs:Command=render&studentId=" + studentID + "&startdate=" + StartDate + "&enddate=" + EndDate + "&type=" + type);
studentid = 1031
STARTDATE = 4 /二千〇一十一分之一
结束日期= 4 /二千零一十一分之三十零
型=学生
ssrs抛出错误'参数验证失败“
答案 0 :(得分:1)
我怀疑问题出在您传递的StartDate和EndDate中。如果这些是实际的DateTime值,您可能需要正确格式化生成的字符串。以下代码的工作方式是否有所不同?
Response.Redirect("http://ups117850/rpt/Pages/Rept.aspx?ItemPath=%2feMaaS%2feMaaS&rs:Command=render&studentId=" + studentID + "&startdate=" + StartDate.ToString("s") + "&enddate=" + EndDate.ToString("s") + "&type=" + type);