Asp.net multi-form, Server Control and form, ASPX page without form

Source: Internet
Author: User

(1) There are multiple forms on the Asp.net page. One primary form is runat = "server", while others are client form with action,
(2) The server control must be placed in <form runat = "server">. The server form is only for sending back. This function is generally not required for website front-end.
(3) Pay attention to the master page. Do not cross the form of the master page too far or too wide.
(4) user controls do not have to be in form.

(5) In Part 2, Asp.net makes it easy to implement the application system on its server control, which is convenient and fast. asp can be used for website creation and Asp.net as the front-end, it does not need its server-side controls and sending-back mechanism at all, so it can also be competent. ...... I don't know what I'm talking about. In short, the front-end does not use server controls. <form runat = "server"> just narrow down the scope !......

(6) The page without form can also be used, and the use is quite good.
But do not place "server control to be sent back" on the page, such as ASP: Textbox, ASP: button, ASP: linkbutton, ASP: imagebutton, ASP: dropdownlist, ASP: ListBox, ASP: checkbox, ASP: checkboxlist, ASP: radiobutton, ASP: radiobuttonlist, ASP: hiddenfield, ASP: fileupload, ASP: gridview, ASP: detailsview, ASP: formview ...... (The stuff that generates the input tag is related to others );
Can be put: ASP: repeater, ASP: Label, ASP: hyperlink, ASP: image, ASP: Table, ASP: literal, ASP: Panel ......

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/TangZhongxin/archive/2009/03/26/4026915.aspx

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.