I need to get the selected value of a parameter and use it in my code. Is there any events where I can capture the parameter values. Please let me know
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It looks as if the answer is yes.
There’s an event on the ReportViewer web control called SubmittingParameterValues that you can handle in the host page. This has a ReportParametersEventArgs parameter, which in turn has a Parameters property.
The
Parametersproperty is a collection ofReportParameterobjects. TheReportParameterclass hasNameandValuesproperties.You can use the
Nameproperty to find the parameter you’re interested in. TheValuesproperty, which is a collection of strings, should contain the value submitted.