頁面定時刷新(c# asp .net 2003)

本文介绍了如何在ASP.NET 2003的C# WebForm中实现页面定时刷新的功能。通过主页面和子页面的交互,结合TextBox控件和字符串操作,展示了自动刷新的技术实现。
摘要由CSDN通过智能技术生成

頁面:

 

主頁面 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 >
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值