Tags: credentials, error, fase, initial, items, lists, microsoft, msdn, parameters, rectangles, report, software, specified, studio, sub-items, visual

error: Some parameters or credentials have not been specified

On Microsoft » Microsoft Visual Studio

2,664 words with 0 Comments; publish: Fri, 21 Dec 2007 03:39:00 GMT; (30046.88, « »)

I have a report with main items and sub-items, the sub-items are rectangles with lists in it. In the initial fase i only get the data for the main items and when a main item toggles a sub-item (rectangle) to visible, i want to load the data for the sub-items from the DB. When the page reloads i get the following error: Some parameters or credentials have not been specified.

protected void rv_Toggle(object sender, System.ComponentModel.CancelEventArgs e)

{

((ReportViewer)sender).LocalReport.DataSources.Clear();

((ReportViewer)sender).LocalReport.DataSources.Add(new Microsoft.Reporting.WebForms.ReportDataSource("MainItems",Objectlist1));

((ReportViewer)sender).LocalReport.DataSources.Add(new Microsoft.Reporting.WebForms.ReportDataSource("SubItems",Objectlist2));

AddReportParameters(((ReportViewer)sender).LocalReport, _SearchFilter);

((ReportViewer)sender).DataBind();

((ReportViewer)sender).LocalReport.Refresh();

}

All Comments

Leave a comment...

  • 0 Comments