Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi all

I have loaded list of server name in dropdown (eg. 10.25.208.170_PLXWFDB2) while passing this value as a parameter to report viewer I am getting error like "The 'ServerName' parameter is missing a value".

When I check with getparameters() method the label field is having proper value like(10.25.208.170_PLXWFDB2) but value field is having the value (10.25.208.170) the values are truncated after underscore.
C#
 combo1.Items.Add("10.25.208.167_PLXWFDB1");
 ReportParameter[] parm = new ReportParameter[1]
parm[0] = new ReportParameter("ServerName", combo1.SelectedItem.Text);
MyReportViewer.ServerReport.SetParameters(parm);
//here itself while setting ,value field is having the value (10.25.208.170)

Kindly help me. Can anyone help on this issue?

Thanks in advance
Posted
Updated 25-Oct-10 1:50am
v3
Comments
Sandeep Mewara 25-Oct-10 7:58am    
What is the value of 'combo1.SelectedItem.Text'? I doubt it to be issue of combobox then reports. Please check.

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