WebForm1.aspx
上传用户:lxycoco
上传日期:2022-07-21
资源大小:38457k
文件大小:4k
- <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="PCSWebApp2.WebForm1" %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
- <HTML>
- <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 MS_POSITIONING="GridLayout">
- <form id="Form1" method="post" runat="server">
- <h1 align="center">
- Enter details and set a day to initiate an event.
- </h1>
- <br>
- <table bordercolor="#000000" cellspacing="0" cellpadding="8" rules="none" align="center"
- bgcolor="#fff99e" border="2" width="540">
- <tr>
- <td valign="top">Your Name:</td>
- <td valign="top">
- <asp:TextBox ID="nameBox" Runat="server" Width="160px" />
- <asp:RequiredFieldValidator ID="validateName" Runat="server" ErrorMessage="You must enter a name." ControlToValidate="nameBox"
- Display="None" />
- </td>
- <td valign="middle" rowspan="4">
- <asp:Calendar ID="calendar" Runat="server" BackColor="White" />
- </td>
- </tr>
- <tr>
- <td valign="top">Event Name:</td>
- <td valign="top">
- <asp:TextBox ID="eventBox" Runat="server" Width="160px" />
- <asp:RequiredFieldValidator ID="validateEvent" Runat="server" ErrorMessage="You must enter an event name." ControlToValidate="eventBox"
- Display="None" />
- </td>
- </tr>
- <tr>
- <td valign="top">Meeting Room:</td>
- <td valign="top">
- <asp:DropDownList ID="roomList" Runat="server" Width="160px">
- <asp:ListItem Value="1">The Happy Room</asp:ListItem>
- <asp:ListItem Value="2">The Angry Room</asp:ListItem>
- <asp:ListItem Value="3">The Depressing Room</asp:ListItem>
- <asp:ListItem Value="4">The Funked Out Room</asp:ListItem>
- </asp:DropDownList>
- <asp:RequiredFieldValidator ID="validateRoom" Runat="server" ErrorMessage="You must select a room." ControlToValidate="roomList"
- Display="None" />
- </td>
- </tr>
- <tr>
- <td valign="top">Attendees:</td>
- <td valign="top">
- <asp:ListBox ID="attendeeList" Runat="server" Width="160px" SelectionMode="Multiple" Rows="6">
- <asp:ListItem Value="1">Bill Gates</asp:ListItem>
- <asp:ListItem Value="2">Monica Lewinsky</asp:ListItem>
- <asp:ListItem Value="3">Vincent Price</asp:ListItem>
- <asp:ListItem Value="4">Vlad the Impaler</asp:ListItem>
- <asp:ListItem Value="5">Iggy Pop</asp:ListItem>
- <asp:ListItem Value="6">William
- Shakespeare</asp:ListItem>
- </asp:ListBox>
- <asp:RequiredFieldValidator ID="validateAttendees" Runat="server" ErrorMessage="You must have at least one attendee."
- ControlToValidate="attendeeList" Display="None" />
- </td>
- </tr>
- <tr>
- <td align="center" colspan="3">
- <asp:Button ID="submitButton" Runat="server" Width="100%" Text="Submit meeting room request" />
- </td>
- </tr>
- <tr>
- <td align="center" colspan="3">
- <asp:ValidationSummary ID="validationSummary" Runat="server" HeaderText="Before submitting your request:" />
- </td>
- </tr>
- </table>
- <br>
- Results:
- <asp:Label Runat="server" ID="resultLabel" Text="None." />
- </form>
- </body>
- </HTML>