110,535
社区成员
发帖
与我相关
我的任务
分享
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 16px; WIDTH: 648px; POSITION: absolute; TOP: 24px; HEIGHT: 72px"
borderColor="black" cellSpacing="1" cellPadding="1" width="648" border="0">
<TR>
<TD style="WIDTH: 89px; HEIGHT: 28px"><FONT face="宋体"><asp:label id="labBH" runat="server">信息编号</asp:label></FONT></TD>
<TD style="WIDTH: 200px; HEIGHT: 28px"><FONT face="宋体"><asp:textbox id="TBBH" runat="server" Width="104px" ></asp:textbox></FONT></TD>
<TD style="WIDTH: 103px; HEIGHT: 28px"><asp:label id="LabGXRI" runat="server">更新日期</asp:label></TD>
<TD style="HEIGHT: 29px"><FONT face="宋体" id="FONT1">
<asp:textbox id="TbTIME" runat="server" Width="104px"></asp:textbox> </FONT></TD>
</TR>
<TR>
<TD style="height: 30px"><asp:button id="ButTJ" runat="server" Text="提交" onclick="ButTJ_Click" ></asp:button></TD>
<TD style="height: 30px"><asp:button id="ButCZ" runat="server" Text="重置" onclick="ButCZ_Click"></asp:button></TD>
</TR>
</TABLE>
<br />
</form>
<script type="text/javascript"
language="javascript">
function check()
{
if(Form1.TBBH.value=="")
{
alert("请输信息编号")
Form1.TBBH.focus();
return false;
}
}
</script>
</body>
</HTML>
<input runat="server" type="submit" name="Submit" value="提交" id="Submit1" />
<form id="Form1" method="post" runat="server" onsubmit="return check();">