Page Directives, code section and layout : Directory Structure « ASP.Net Instroduction « ASP.NET Tutorial






<!-- Directives --> 
<%@ Page Language="C#" %>

<!-- Code Section --> 
<script runat="server">
private void MakeUpper(object sender, EventArgs e)
{
    string buf = TheString.Value;
    TheResult.InnerHtml = buf.ToUpper();
}
</script>

<!-- Layout --> 
<html>
<head><title>UpperCase</title></head>
<body>
<h1>Make It Upper</h1>
<form id="Form1" runat="server">
    <input runat="server" id="TheString" type="text" />
    <input runat="server" id="Button1" type="submit" value="Proceed..." 
        OnServerClick="MakeUpper" />
    <hr>
    <h3>Results:</h3>
    <span runat="server" id="TheResult" />
</form>
</body>
</html>








1.2.Directory Structure
1.2.1.Application Directory Structure
1.2.2.ASP.NET Application Folders
1.2.3.ASP.NET Page Directives
1.2.4.directives in ASP.NET
1.2.5.@Page directive
1.2.6.Page Directives, code section and layout