Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

The Server tag is not well formed error message

Status
Not open for further replies.

JSMITH242B

Programmer
Mar 7, 2003
352
GB
Hi Guys,
I've been pulling my hair out with this one!!
I'm using the reportviewer control in my ASP.NET application and need to pass in default parameters.

I have the following:
runat="server" ServerUrl=' ReportPath='%2fTestReports%2fLocalReports%2fPie&amp';rs%3aCommand='Render&amp';SnapshotDate='01/06/2004'

I've tried all sorts of variations. The following syntax runs but prompts the user for the SnapshotDate parameter. I want the report to launch automatically by passing in the parameters' value via the URL.
runat="server" ServerUrl=' ReportPath='%2fTestReports%2fLocalReports%2fPie'

Thanks!!
 
I believe you are missing the "&" before the parameter name. Here is an example of a URL I use that runs a report with a parameter and exports it to PDF. "MbNo" is the parameter name.
Code:
[URL unfurl="true"]http://servername/reportserver?/Folder/ReportName&rs:Format=PDF&MbNo=MB205111004[/URL]
Hope this helps.
Andrea
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top