i am passing date in querystring, makes a query to DB which use this date to return a dataset, and than i simply bind this datatable to my report..evry thing ok..but when i press the navigation button (next) it give the error (Load Report Failed) i guess its due to the dates in the url converts to %2f.
can any one tell me the workaround for it...
my url is(which works fine as report loaded for first time)
http://localhost:8186/Report.aspx?RptType=1&fromdate=5/1/2012&todate=5/31/2012
when i click next, url becomes like
http://localhost:8186/Report.aspx?RptType=1&fromdate=5%2f1%2f2012&todate=5%2f31%2f2012
my code is :
string fromdate = Request.QueryString.Get("fromdate");
string todate = Request.QueryString.Get("todate");
Dataset ds = sbg_JobSeeker.GetJobSeakerDetailInfo(fromdate, todate);
ds.Tables[0].TableName = "sbg_JobSeeker";
reportSource.ReportDocument.Load(path + "Applicants.rpt");
reportSource.ReportDocument.SetDataSource(ds.Tables[0]);
i found it my self..:P i just send my querystring like
txtDateFrom.Text.Replace('/', '-') + "&todate=" + txtDateTo.Text.Replace('/', '-')
http://localhost:8186/Report.aspx?RptType=1&fromdate=5-1-2012&todate=5-31-2012
its woriking fine for me now..:)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.