English 中文(简体)
日期:
原标题:date in url, having / is converted to %2f when i go to next (2nd or 3rd etc) page of crystal report

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...

我的午餐是(因为报告首次装满了罚款)

http://localhost:8186/Report.aspx?RptType=1&fromdate=5/1/2012&todate=5/31/2012

当点击下点时,尿液也一样。

http://localhost:8186/Report.aspx?RptType=1&fromdate=5%2f1%2f2012&todate=5%2f31%2f2012

我的法典是:

 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 认为自己。 i 只是发出我的问候。

txtDateFrom.Text.Replace( / ,  - ) + "&todate=" + txtDateTo.Text.Replace( / ,  - )
http://localhost:8186/Report.aspx?RptType=1&fromdate=5-1-2012&todate=5-31-2012

现在,它给我打上了罚款。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签