The control "XXXX" of type "XXX" must be placed inside the form tag with Runat=server.

Source: Internet
Author: User

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 <form
runat= "Server" ></form> room.
2) tag the grid with runat= "Server".

Find out that the foreground grid does have markup runat= "Server", and the table is placed in the form.
Workaround: Add the following override method in the background code
public override void
Verifyrenderinginserverform (Control Control)
{ }

Find the MSDN description, which is intended to verify that the Form control is rendered for the specified ASP. NET mobile control at run time.

SOURCE Quote: Http://www.jb51.net/article/21635.htm

Contact Us

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.