<%@ Page MasterPageFile="master1.master" %> <asp:Content ContentPlaceHolderId="CPH1" runat="server"> <h2>W3Schools</h2> <form runat="server"> <asp:TextBox id="textbox1" runat="server" /> <asp:Button id="button1" runat="server" text="Button" /> </form> </asp:Content> 2.2 One of the important of the language is code minimization. Data controls play an important role in Asp.net this purpose. Data controls used to display the records in the form of reports. Some of the Data controls are: Repeater data control Detailsview data control GridView data control DataList data control FormView data control GridView data control: This control displays the data in tabular form. It not only support the editing and deleting of data, it also support sorting and paging of data. Example: DetailsView data control: This control displays single record of data at a time. It supports updating, insertion or deletion of the record. It can be used in conjunction with the GridView control to provide a master-detail view of your data. Example: FormView data control: This control displays a single record of data at a time like DetailsView control and supports the editing of record. This control requires the use of template to define the rendering of each item. Developer can completely customize the appearance of the record. Example: DataListView control: This control displays data as in a list. Presentation of the data can be customized via templates. Inline editing and deleting of data is supported by this control. Example: Repeater Data control: This control is used to display the repeated list of the items that are bound to the control. It provides complete flexibility in regards to the HTML presentation. A Repeater has five templates to format it: HeaderTemplate AlternatingItemTemplate Itemtemplate SeoperatorTemplate FooterTemplate
<%@ Page MasterPageFile="master1.master" %> <asp:Content ContentPlaceHolderId="CPH1" runat="server"> <h2>W3Schools</h2> <form runat="server"> <asp:TextBox id="textbox1" runat="server" /> <asp:Button id="button1" runat="server" text="Button" /> </form> </asp:Content> 2.2 One of the important of the Asp.net language is code minimization. Data controls play an important role in this purpose. Data controls used to display the records in the form of reports. Some of the Data controls are: Repeater data control Detailsview data control GridView data control DataList data control FormView data control GridView data control: This control displays the data in tabular form. It not only support the editing and deleting of data, it also support sorting and paging of data. Example: DetailsView data control: This control displays single record of data at a time. It supports updating, insertion or deletion of the record. It can be used in conjunction with the GridView control to provide a master-detail view of your data. Example: FormView data control: This control displays a single record of data at a time like DetailsView control and supports the editing of record. This control requires the use of template to define the rendering of each item. Developer can completely customize the appearance of the record. Example: DataListView control: This control displays data as in a list. Presentation of the data can be customized via templates. Inline editing and deleting of data is supported by this control. Example: Repeater Data control: This control is used to display the repeated list of the items that are bound to the control. It provides complete flexibility in regards to the HTML presentation. A Repeater has five templates to format it: HeaderTemplate AlternatingItemTemplate Itemtemplate SeoperatorTemplate FooterTemplate