你也不说一下页面实现的功能,页面的源代码,里面有什么控件,出错位置,怎么给你看啊

解决方案 »

  1.   

      就是添加页面,没什么控件
    <%@ 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>
                                    &nbsp;<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%">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                        &nbsp;
                        <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>