protected void UpdateButton_Click(object sender, EventArgs e) { if (this.ReportParameterTable.Rows.Count.Equals(0)) { return; } Collection <KeyValuePair <string, object> > list = new Collection <KeyValuePair <string, object> >(); foreach (TableRow row in this.ReportParameterTable.Rows) { TableCell cell = row.Cells[1]; var box = cell.Controls[0] as TextBox; if (box != null) { TextBox textBox = box; list.Add(new KeyValuePair <string, object>("@" + textBox.ID.Replace("_text_box", ""), textBox.Text)); } } this.ReportViewer11.Path = this.ReportPath(); foreach (var parameter in ParameterHelper.BindParameters(this.Server.MapPath(this.ReportPath()), list)) { this.ReportViewer11.AddParameterToCollection(parameter); } this.ReportViewer11.InitializeReport(); }