頁面: 主頁面 aspx <% ... @ Page language="c#" Codebehind="inp116.aspx.cs" AutoEventWireup="false" Inherits="USE_WEB_SC.ASP.inp116" %> <! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > < HTML > < HEAD > < title > 各戶下單未承接表 </ title > < meta content ="Microsoft Visual Studio .NET 7.1" name ="GENERATOR" > < meta content ="C#" name ="CODE_LANGUAGE" > < meta content ="JavaScript" name ="vs_defaultClientScript" > < meta content ="http://schemas.microsoft.com/intellisense/ie5" name ="vs_targetSchema" > < meta http-equiv ="Content-Type" content ="text/html; charset=big5" > < style type ="text/css" > ... BODY {...}{ MARGIN-TOP: 0px; MARGIN-RIGHT: 0px }BODY {...}{ FONT-SIZE: 12px }TD {...}{ FONT-SIZE: 12px }TH {...}{ FONT-SIZE: 12px } </ style > </ HEAD > < body MS_POSITIONING ="GridLayout" > < form id ="Form1" method ="post" runat ="server" > < TABLE width ="100%" > < TR > < TD height ="50" >< FONT face ="新細明體" > < TABLE border ="0" cellPadding ="0" cellSpacing ="0" > < TR > < TD width ="58" align ="center" nowrap > 刷新時間 </ TD > < TD width ="168" align ="center" nowrap style ="WIDTH: 52px" >< asp:textbox id ="TextBox1" runat ="server" Columns ="8" ></ asp:textbox ></ TD > < TD width ="14" nowrap > 分 </ TD > < TD width ="44" nowrap >< asp:button id ="Button1" runat ="server" Text ="確認" ></ asp:button ></ TD > < TD width ="209" nowrap > < asp:RequiredFieldValidator id ="RequiredFieldValidator1" runat ="server" Font-Size ="12px" ErrorMessage ="不能為空" Display ="Dynamic" ControlToValidate ="TextBox1" ></ asp:RequiredFieldValidator > < asp:RangeValidator id ="RangeValidator1" runat ="server" ErrorMessage ="請輸入1~30之間的數字!" Display ="Dynamic" Type ="Integer" MaximumValue ="30" MinimumValue ="1" ControlToValidate ="TextBox1" Font-Size ="12px" ></ asp:RangeValidator ></ TD > </ TR > </ TABLE > </ FONT > </ TD >