Slide 10.2: A database processing example
Slide 10.4: Application screenshots
Home

A Database Processing Example (Cont.)


The ASP.NET applies the approaches similar to the ones used by PHP. It puts the client-side HTML script and server-side code such as C# script together in a file. An ASP.NET web site may include three kinds of files:
.aspx (interface source code)
It’s an HTML file, but includes some non-HTML tags like <asp:Label>. ASP.NET automatically generates it from the interface created by users.

.aspx (client-side HTML source code)
It is a pure HTML file, which is retrieved by using the Firefox options View Page Source after right-clicking the mouse. It may be translated from the above file.

.aspx.cs (server-side C# script)
It includes the event (such as clicking a button) handlers in C#. The file is not necessary if the event handlers are included in the .aspx file.
The screenshots of this example are given next:

Insert