Showing results for 
Search instead for 
Did you mean: 

Display Toolbar error

Former Member
0 Kudos

Post Author: app

CA Forum: .NET

When I enable "Display Toolbar" on the CrystalReportViewer I get an error when I try to display the report on a web page. The error is "Control 'CrystalReportViewer1_ctl02_ctl01' of type 'ToolbarButton' must be

placed inside a form tag with runat=server." The report displays normally if the Display option is false. What causes this error? I need to display the toolbar.VS 2005

View Entire Topic
Former Member
0 Kudos

Post Author: xamslp

CA Forum: .NET


Ensure that you have a form tag in your aspx page. I just ran into this and when I removed my old CRViewer, the <form> tag went with it.

<body><form id=frmViewer method=post runat=server>...<crviewer/></form></body>