ASPX Code Colorizer, Color Coded ASP.NET Code Formatter


This Example Uses the VwdCms.CodeViewer to Add Color to an ASPX Sample.

 

Read the VwdCms.CodeViewer server control article and documentation: VwdCms.CodeViewer Documentation

ASPX (ASP.NET Web Form) code colorizing example:


<%@ Page 
Language="C#" 
AutoEventWireup="true" 
CodeFile="Logon.aspx.cs" 
Inherits="Logon" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Logon Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Label ID="lblInstructions" runat="server">
Enter your Username and Password and click the Logon button.
</asp:Label>

<asp:Table ID="tblLogon" runat="server" Height="200px" Width="362px" GridLines="None" style="border:solid 1px silver;">
<asp:TableRow >
<asp:TableCell>Username:</asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="txtUsername" runat="server"/>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow >
<asp:TableCell>Password:</asp:TableCell>
<asp:TableCell>
<asp:TextBox ID="txtPassword" runat="server" TextMode="password"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>

<asp:TableRow >
<asp:TableCell ColumnSpan="2" HorizontalAlign="center">
<asp:Button ID="btnLogon" runat="server" Text="Logon" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>

</div>
</form>
</body>
</html>

This code sample has been automatically colorized by the VwdCms.CodeViewer control, an ASP.NET server control code colorizer that supports HTML, ASPX, XML, C#, and JavaScript code formats.