Hello, I am trying to pass someparameters to my reporting services web service.
This report has 2 dropdown and one checkbox , I am trying to convert an arraylist to parametervalue[]
This is teh code-
ArrayList al = new ArrayList();
al.Add(DropDownList1.SelectedValue.ToString());
al.Add(DropDownList2.SelectedValue.ToString());
for (int i = 0; i < CheckBoxList1.Items.Count; i++)
{
if (CheckBoxList1.Items .Selected)
{
selectected.Append(CheckBoxList1.Items .Value);
selectected.Append( ",");
al.Add(CheckBoxList1.Items .Value.ToString());
TiposCompetenciasSeleccionadas++;
}
}
ParameterValue[] reportParameterValues3 = null;
reportParameterValues3 = ( ParameterValue[])(al.ToArray(typeof(ParameterValue))); --- ERROR
.NET Development33
|