Do you know and use include include directives for so many years in. NET development?
<%@ Page Language="C #"AutoEventWireup="true"codebehind="Syntax.aspx.cs"Inherits="HitCounter.MyTests.Syntax" %><!DOCTYPE HTML><HTMLxmlns= "http://www.w3.org/1999/xhtml"><Headrunat= "Server"> <title></title></Head><Body> <formID= "Form1"runat= "Server">From :<ahref= "Http://quickstarts.asp.net/QuickStartv20/aspnet/doc/pages/syntax.aspx">Source</a> <BR/> <Div>1. Data binding syntax:<%# %> <BR/><BR/> <asp:datalistID= "MyList"runat= "Server"> <ItemTemplate>Here is a value:<%# Container.DataItem%> </ItemTemplate> </asp:datalist> <HR/>2. Escape syntax:<%: %> <H1> <%: "<b>hello, from home </b>" %> </H1> <HR/>3. This is the server side of the include syntax<BR/><BR/> <!--#Include file= "subcontent.html" - <!--#Include file= "subform.aspx" - <HR/>4. Syntax for referencing resource configurations<%$ ... %> <BR/><BR/>Expression Syntax:<%$ ... %>New in 2.0 ASP. 2.0 adds a new declarative expression syntax for substituting values into a page before the page I s parsed. This is useful for substituting connection string values or application settings defined in a Web. config file for server C Ontrol property values. It can also is used to substitute values from a resource file for locaization. More on connection string and resources expressions and expression handlers can is found in the performing Data Access, in Ternationalizing Your application and extending ASP. <BR/> <BR/> <Asp:sqldatasource id= "SqlDataSource1" runat= "Server" connectionstring= "<%$ connectionstrings:pubs%>"Selectcommand=" sp_getauthors "/> <BR/> <BR/> <Asp:label id= "Label1" runat= "Server" text= "<%$ resources:exchrate, Convertlabel%>" /> </Div> <BR/><BR/> </form></Body></HTML>
Common syntax for C # ASP. NET page, page contains