Click here to Skip to main content
16,015,218 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have ASPX page in which I have added filters. Based on the selection of filters i want to display report in report viewer. The filters are optional. How can I get results on optional selection?
Posted
Updated 8-Apr-16 3:03am
Comments
JasonMacD 9-Aug-13 8:49am    
Your question is way too vague. I don't have a clue what you are asking. What does your Stored Proc look like for the report? What are you filtering on? Etc? Etc?

1 solution

You can give default value for your optional parameters.
Such as
string defaultValue = "'1'";


For more info check this.
http://blogs.msdn.com/b/selvar/archive/2013/03/25/working-with-rdlc-2012-and-passing-parameter-to-sub-report-in-report-viewer-2012-control.aspx[^]

I hope this will help to you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900