30 likes | 178 Views
.NET Programming: Basic ASPX Scripting & HTML Embedment. Christopher M. Pascucci. Basic Syntax & HTML Embedment. When an ASPX enabled Web Server accesses an ASPX page in response to a URL request, it will perform server side processing in response to the following syntactic elements :
E N D
.NET Programming: Basic ASPX Scripting & HTML Embedment Christopher M. Pascucci
Basic Syntax & HTML Embedment • When an ASPX enabled Web Server accesses an ASPX page in response to a URL request, it will perform server side processing in response to the following syntactic elements: • Inline Scripting: script within the <% ... %> tag • Script within the <script runat="server" …> </script tag> • The <asp:subtagName … /> tag (with or without a runat="server" attribute) • An html form tag with a runat="server" attribute • The VB code in a CodeBehind • The function of an instantiated component class • ASPX script and HTML can be intermixed. The server will transmit to the browser as it processes the page. Following is an example that illustrates many features of ASPX embedment in HTML. • Example 1: • Demo • Code • Example 2: • Demo • Code of HTML page • Code of ASPX page
Basic Syntax & HTML Embedment • When an ASPX enabled Web Server accesses an ASPX page in response to a URL request, it will perform server side processing in response to the following syntactic elements: