Hi,
If, all you want is to hide the report viewer's parameters pane, you can do it by
writing code-
MyReportViewer.ShowParameterPrompts = false;
If you want to hide a single parameter, write the code -
reportParameterCollection[0].Visible = false;
Since you told your are new even to c#, here are the sample codes for you to call are port in your report viewer control. Below sample hides parameter1 and shows parameter2.
protected void View_Click(object sender, EventArgs e)
{
MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
// Report Server URL
MyReportViewer.ServerReport.ReportServerUrl = new Uri("http://servername/Reportserver_Instancename");
// Report Name
MyReportViewer.ServerReport.ReportPath = "/ReportsFolderName/Reportname";
MyReportViewer.ShowParameterPrompts = true;
MyReportViewer.ShowPrintButton = true;
// Below code demonstrate the Parameter passing method. Use only if you have parameters into the reports.
Microsoft.Reporting.WebForms.ReportParameter[] reportParameterCollection = new Microsoft.Reporting.WebForms.ReportParameter[2];
reportParameterCollection[0] = new Microsoft.Reporting.WebForms.ReportParameter();
reportParameterCollection[0].Name = "UserID";
reportParameterCollection[0].Values.Add(Siteid.Text.Trim());
reportParameterCollection[0].Visible = false;
reportParameterCollection[1] = new Microsoft.Reporting.WebForms.ReportParameter();
reportParameterCollection[1].Name = "SiteID";
reportParameterCollection[1].Values.Add("0");
reportParameterCollection[1].Visible = true;
MyReportViewer.ServerReport.SetParameters(reportParameterCollection);
MyReportViewer.ServerReport.Refresh();