<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server"> <script runat="server"> void Page_Load() { lblServerTime.Text = DateTime.Now.ToString(); } </script> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="maincontent" Runat="Server"> <div> The current date and time is: <asp:Label ID="lblServerTime" runat="server" /> </div> </asp:Content>
Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/usermaster.Master" AutoEventWireup="true" CodeBehind="datetimeex1.aspx.cs" Inherits="bse21aftmoviestore.tutorials.week2.datetimeex1" %> Line 2: Line 3: <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)