asp.net2。0 你也不说一下页面实现的功能,页面的源代码,里面有什么控件,出错位置,怎么给你看啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 就是添加页面,没什么控件<%@ Page Language="C#" AutoEventWireup="true" CodeFile="requisition_add.aspx.cs" Inherits="requisition_requisition_add" %><!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 runat="server"> <LINK href="../CSS/BasicLayout.css" type="text/css" rel="stylesheet"> <title>通知单</title> <script language="javascript"> function check() { if(window.form1.txt_tm.value==0) { alert("请输入题目!") window.form1.txt_tm.focus(); return false; } if(window.form1.txt_content.value==0) { alert("请填写内容!") window.form1.txt_content.focus(); return false; } if(window.form1.cmd_usersName.value==0) { alert("请选择员工!") window.form1.cmd_usersName.focus(); return false; } } </script></head><body> <form id="form1" runat="server" onsubmit="return check()"> <div> <table align="center" border="1" bordercolor="#ccccff" width="80%"> <tr> <td align="center"> <table width="100%"> <tr class="GbText"> <td align="left" style="font-weight: bold" valign="top"> Cheongin </td> </tr> <tr> <td align="left" style="height: 2px" valign="top"> </td> </tr> </table> <table width="100%"> <tr class="GbText"> <td align="center"> <asp:TextBox ID="deptID" runat="server" Height="0px" Visible="False" Width="0px"></asp:TextBox> <asp:Label ID="Label1" runat="server" Font-Size="X-Large" Text="通 知 单"></asp:Label></td> </tr> </table> <table border="1" bordercolor="#cccccc" cellpadding="0" cellspacing="0" class="GbText" width="100%"> <tr class="GbText" height="40" valign="bottom"> <td align="center" width="25%" style="height: 40px"> <asp:Label ID="Label4" runat="server" Text="编号"></asp:Label></td> <td width="25%" align=left style="height: 40px"> <asp:TextBox ID="txt_bh" runat="server" CssClass="Input3"></asp:TextBox></td> <td align="center" width="20%" style="height: 40px"> <asp:Label ID="Label8" runat="server" Text="日期"></asp:Label></td> <td width="30%" align=left style="height: 40px"> <asp:TextBox ID="txt_date" runat="server" CssClass="Input3" ReadOnly="True"></asp:TextBox></td> </tr> <tr class="GbText" height="40" valign="bottom"> <td align="center" width="25%" style="height: 40px"> <asp:Label ID="Label5" runat="server" Text="发单部门"></asp:Label></td> <td width="25%" align=left style="height: 40px"> <asp:TextBox ID="txt_fdbm" runat="server" CssClass="Input3" ReadOnly="True"></asp:TextBox></td> <td align="center" width="20%" style="height: 40px"> <asp:Label ID="Label10" runat="server" Text="收单人"></asp:Label></td> <td width="30%" align=left style="height: 40px"> <asp:TextBox ID="cmd_usersName" runat="server" CssClass="Input3"></asp:TextBox> <asp:TextBox ID="txt_userid" runat="server" CssClass="Input3" Width="0px"></asp:TextBox><A onclick="javascript:window.open('selectusers.aspx','','width=400,height=300')" href="#"><IMG src="../Image/zz.gif" border="0" id="IMG1"></A></td> </tr> <tr class="GbText" height="40" valign="bottom"> <td align="center" width="25%"> <asp:Label ID="Label6" runat="server" Text="发单人"></asp:Label></td> <td width="25%" align=left> <asp:TextBox ID="txt_fdr" runat="server" CssClass="Input3" ReadOnly="True"></asp:TextBox></td> <td align="center" width="20%"> </td> <td width="30%" align=left> </td> </tr> </table> <table border="1" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="100%"> <tr class="GbText" height="40" valign="bottom"> <td align="center" width="25%"> <asp:Label ID="Label7" runat="server" Text="题目"></asp:Label></td> <td width="75%" align=left> <asp:TextBox ID="txt_tm" runat="server" CssClass="Input3" Width="455px"></asp:TextBox></td> </tr> </table> <table cellpadding="0" cellspacing="0" width="100%"> <tr class="GbText" height="20" valign="bottom"> <td align="center" width="25%"> </td> </tr> </table> <table cellpadding="0" cellspacing="0" width="100%"> <tr class="GbText"> <td align="center" style="height: 205px" width="100%"> <asp:TextBox ID="txt_content" runat="server" Height="199px" TextMode="MultiLine" Width="90%"></asp:TextBox> </td> </tr> </table> <table cellpadding="0" cellspacing="0" width="100%"> <tr class="GbText" height="20"> <td align="left" valign="bottom" width="100%"> </td> </tr> </table> <asp:Button ID="cmd_submit" runat="server" CssClass="ButtonCss" OnClick="cmd_submit_Click" Text="提 交" Width="66" /><asp:Button ID="cmd_return" runat="server" CssClass="ButtonCss" OnClick="cmd_return_Click" Text="返 回" UseSubmitBehavior="False" Width="66" /></td> </tr> </table> </div> </form></body></html> 后台有方法可以获取到前台定义的object对象吗? 如何判断图片格式 关键词以空格隔开的查询相关文章的方法 URl参数屏蔽 (最新整理)国内网页设计网站网址大全 在<script type="text/jscript"></script>怎么取得DataGrid控件选择的行的ID,已经绑定DataKeyField="ID" Repeater 添加编辑 Web Service中如何获得调用者的IP地址? 急!!!!!对比DataTable时提示: 未将对象引用设置到对象的实例。 web页中创建activeX出错 关于通信过程中忽然断线的方法 如何保存各分页的数据
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="requisition_add.aspx.cs" Inherits="requisition_requisition_add" %><!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 runat="server">
<LINK href="../CSS/BasicLayout.css" type="text/css" rel="stylesheet">
<title>通知单</title>
<script language="javascript">
function check()
{
if(window.form1.txt_tm.value==0)
{
alert("请输入题目!")
window.form1.txt_tm.focus();
return false;
}
if(window.form1.txt_content.value==0)
{
alert("请填写内容!")
window.form1.txt_content.focus();
return false;
}
if(window.form1.cmd_usersName.value==0)
{
alert("请选择员工!")
window.form1.cmd_usersName.focus();
return false;
}
}
</script>
</head>
<body>
<form id="form1" runat="server" onsubmit="return check()">
<div>
<table align="center" border="1" bordercolor="#ccccff" width="80%">
<tr>
<td align="center">
<table width="100%">
<tr class="GbText">
<td align="left" style="font-weight: bold" valign="top">
Cheongin
</td>
</tr>
<tr>
<td align="left" style="height: 2px" valign="top">
</td>
</tr>
</table>
<table width="100%">
<tr class="GbText">
<td align="center">
<asp:TextBox ID="deptID" runat="server" Height="0px" Visible="False" Width="0px"></asp:TextBox>
<asp:Label ID="Label1" runat="server" Font-Size="X-Large" Text="通 知 单"></asp:Label></td>
</tr>
</table>
<table border="1" bordercolor="#cccccc" cellpadding="0" cellspacing="0" class="GbText"
width="100%">
<tr class="GbText" height="40" valign="bottom">
<td align="center" width="25%" style="height: 40px">
<asp:Label ID="Label4" runat="server" Text="编号"></asp:Label></td>
<td width="25%" align=left style="height: 40px">
<asp:TextBox ID="txt_bh" runat="server" CssClass="Input3"></asp:TextBox></td>
<td align="center" width="20%" style="height: 40px">
<asp:Label ID="Label8" runat="server" Text="日期"></asp:Label></td>
<td width="30%" align=left style="height: 40px">
<asp:TextBox ID="txt_date" runat="server" CssClass="Input3" ReadOnly="True"></asp:TextBox></td>
</tr>
<tr class="GbText" height="40" valign="bottom">
<td align="center" width="25%" style="height: 40px">
<asp:Label ID="Label5" runat="server" Text="发单部门"></asp:Label></td>
<td width="25%" align=left style="height: 40px">
<asp:TextBox ID="txt_fdbm" runat="server" CssClass="Input3" ReadOnly="True"></asp:TextBox></td>
<td align="center" width="20%" style="height: 40px">
<asp:Label ID="Label10" runat="server" Text="收单人"></asp:Label></td>
<td width="30%" align=left style="height: 40px">
<asp:TextBox ID="cmd_usersName" runat="server" CssClass="Input3"></asp:TextBox>
<asp:TextBox ID="txt_userid" runat="server" CssClass="Input3" Width="0px"></asp:TextBox><A onclick="javascript:window.open('selectusers.aspx','','width=400,height=300')" href="#"><IMG src="../Image/zz.gif" border="0" id="IMG1"></A></td>
</tr>
<tr class="GbText" height="40" valign="bottom">
<td align="center" width="25%">
<asp:Label ID="Label6" runat="server" Text="发单人"></asp:Label></td>
<td width="25%" align=left>
<asp:TextBox ID="txt_fdr" runat="server" CssClass="Input3" ReadOnly="True"></asp:TextBox></td>
<td align="center" width="20%">
</td>
<td width="30%" align=left>
</td>
</tr>
</table>
<table border="1" bordercolor="#cccccc" cellpadding="0" cellspacing="0" width="100%">
<tr class="GbText" height="40" valign="bottom">
<td align="center" width="25%">
<asp:Label ID="Label7" runat="server" Text="题目"></asp:Label></td>
<td width="75%" align=left>
<asp:TextBox ID="txt_tm" runat="server" CssClass="Input3" Width="455px"></asp:TextBox></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">
<tr class="GbText" height="20" valign="bottom">
<td align="center" width="25%">
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">
<tr class="GbText">
<td align="center" style="height: 205px" width="100%">
<asp:TextBox ID="txt_content" runat="server" Height="199px" TextMode="MultiLine"
Width="90%"></asp:TextBox>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">
<tr class="GbText" height="20">
<td align="left" valign="bottom" width="100%">
</td>
</tr>
</table>
<asp:Button ID="cmd_submit" runat="server" CssClass="ButtonCss" OnClick="cmd_submit_Click"
Text="提 交" Width="66" /><asp:Button ID="cmd_return" runat="server" CssClass="ButtonCss"
OnClick="cmd_return_Click" Text="返 回" UseSubmitBehavior="False" Width="66" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>