3
Christopher M. Pascucci .NET Programming: Basic ASPX Scripting & HTML Embedment

Christopher M. Pascucci.NET Programming: Basic ASPX Scripting & HTML Embedment

Embed Size (px)

Citation preview

Page 1: Christopher M. Pascucci.NET Programming: Basic ASPX Scripting & HTML Embedment

Christopher M. Pascucci

.NET Programming: Basic ASPX Scripting & HTML

Embedment

.NET Programming: Basic ASPX Scripting & HTML

Embedment

Page 2: Christopher M. Pascucci.NET Programming: Basic ASPX Scripting & HTML Embedment

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:

1. Inline Scripting: script within the <% ... %> tag

2. Script within the <script runat="server" …> </script tag>

3. The <asp:subtagName … /> tag  (with or without a runat="server" attribute)

4. An html form tag with a runat="server" attribute

5. The VB code in a CodeBehind

6. 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 2:DemoCode of HTML pageCode of ASPX page

Example 1:DemoCode

Page 3: Christopher M. Pascucci.NET Programming: Basic ASPX Scripting & HTML Embedment

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: