个人任务管理系统-添加页面

    技术2026-04-13  10

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddTask.aspx.cs" Inherits="PTMS.AddTask" %> <!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"> <title></title> <style type="text/css"> #TextArea1 { height: 179px; width: 270px; } .style1 { height: 31px; } </style> </head> <body> <form id="form1" runat="server"> <div> <table style="width: 380px; margin: 0 auto; border: 1px solid black;" rules="all"> <tr> <td colspan="2" style="text-align:center"><asp:Label ID="Label1" runat="server" Text="添加任务"></asp:Label></td> </tr> <tr> <td class="style1">所属项目: </td> <td style="text-align:center" class="style1"> <asp:DropDownList ID="DropDownList1" runat="server" Height="35px" Width="170px" AppendDataBoundItems="true"> <asp:ListItem Value="0">--请选择--</asp:ListItem> </asp:DropDownList> <br /> <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="请选择该任务所属于的项目!" ControlToValidate="DropDownList1" Operator="NotEqual" Type="Integer" ValueToCompare="0"></asp:CompareValidator> </td> </tr> <tr> <td>任务优先级: </td> <td style="text-align:center"> <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" TextAlign="Left"> <asp:ListItem Selected="True" Value="1">高</asp:ListItem> <asp:ListItem Value="2">中</asp:ListItem> <asp:ListItem Value="3">低</asp:ListItem> </asp:RadioButtonList> </td> </tr> <tr> <td>任务内容: </td> <td> <asp:TextBox ID="TextBox1" runat="server" Height="190px" MaxLength="200" TextMode="MultiLine" ValidationGroup="notnull" Width="272px"></asp:TextBox> <br /> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="任务内容不能为空" ControlToValidate="TextBox1"></asp:RequiredFieldValidator> </td> </tr> <tr> <td colspan="2" style="text-align:center"> <asp:Button ID="addProject" runat="server" Text=" 添加 " onclick="addProject_Click" /> <asp:Button ID="Backs" runat="server" Text="返回列表" onclick="Backs_Click" ValidationGroup="notVg" /> </td> </tr> </table> </div> </form> </body> </html>

     

    Processed: 0.017, SQL: 9