1. First confirm that the LinkButton control is included in the form, check that the form has no runat tag, and if so, keep looking.2. If you see here, it is estimated that you are doing Excel export function. Override the
issue: The control "XXXX" of type "GRID1" must be placed inside the form tag with Runat=server. Note: GRID1 is the ID of the table.Find the solution on the internet roughly as follows:1) Put the grid on the runat= "Server" > room.2) tag the grid
Error message: the control "gridview1" of the type "gridview" must be placed in the form tag with runat = server.
When exporting data to an excel program, an error message is displayed: the "gridview1" control type "gridview" must be placed in a
When exporting data to Excel, it is sometimes an error: the control "GridView1" of type "GridView" must be placed inside a form tag with Runat=server.System.Web.UI.Control Ctl=this. GRIDVIEW1;//DATAGRID1 is the control you drag and drop in the form
In the Export data to Excel program, there is an error message: The type "GridView" control "GridView1" must be placed in the form tag with Runat=serverWorkaround rewrite Verifyrenderinginserverform: Public Override void Verifyrenderinginserverform (
I encountered a problem during development today, which is roughly like this: my page needs an Excel export function, so I used the rendercontrol () of the gridview control () when running, grvzb must be placed in a form tag with runat = server." .
The following error occurs when importing data to excel in the gridview:
Control "DG" of Type 'gridview 'must be placed inside a form tag with runat = Server
This function is missing after searching the online data:
asp.net does not support multiple runat=server forms on the same page, to solve this problem, you can place each form in a separate panel control so that users can simply switch between different panel through radio buttons.
The code is as follows:
Asp.net|server asp.net does not support multiple runat=server forms on the same page, to solve this problem, you can place each form in a separate panel control so that users can simply switch between different panel through radio buttons.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.