Hello,
i'm new to c# and asp.net and i'm trying to build a report with the parameters UserID, DateStart, DateEnd.
Filtering by the currently logged in User via UserID works:
i'm new to c# and asp.net and i'm trying to build a report with the parameters UserID, DateStart, DateEnd.
Filtering by the currently logged in User via UserID works:
(ReportViewer1.Report
as Report1).ReportParameters[0].Value = Page.User.Identity.Name;
For DateStart and DateEnd i created Parameters and set the UI visible to true, so the user gets prompted for the values. So far it's ok.
But how should the Filter Expression look like?
Date BETWEEN DateStart and DateEnd? But how can i do this in Filter - Edit Expressions?
I also tried to setup the DateStart and DateEnd Parameters in the TableAdapter Query and if i pass the two values via code in the Report1.cs it works, but how can i pass the two Values from the UI Parameter Fields to the Tableadapter Fill Query ?
Thanks!