|
Subject:
|
Creating a method
|
|
Posted By:
|
braheem
|
Post Date:
|
7/1/2005 2:11:18 PM
|
Hi I wrote some code using drop down lists and server controls what I am trying to do with this is to get a method to notice the selected items and write back on a different page the items that were selected. I know how to do this with one drop down box, but can't figure it for multiple boxes. Below is the code, any help is greatly appreciated.
Thanks, Braheem
<!-- schedule.aspx --> <%@ page Language="c#" runat="server"%> <html> <head> <title>Springfield Hospital</title> </head>
<body bgcolor="#FFFFCC" text="#000000">
<h2><center>Springfield Hospital</center></h2> <table align="center" border="0"> <tr> <td><center><img src="drnick.jpg" alt="Dr. Nick Riviera" width="100" height="116"></center></td> <td><center><img src="drhibbert.gif" alt="Dr. Julius Hibbert"></center></td> <td><center><img src="drmonroe.gif" alt="Dr. Marvin Monroe" width="115" height="115"></center></td> </tr> </table> <br /> Please select the doctor, day and time you would like to schedule an appointmet. <form action="confimation.aspx" runat="server"> <table border="0"> <tr> <td><b>Physcian:</b></td> <td><b>Day:</b></td> <td><b>Time:</b></td> </tr>
<td> <asp:dropdownlist id="doc" runat="server"> <asp:listitem>Nick Riviera</asp:listitem> <asp:listitem>Julius Hibbert</asp:listitem> <asp:listitem>Marvin Monroe</asp:listitem> </asp:dropdownlist> </td> <td> <asp:dropdownlist id="days" runat="server"> <asp:listitem>Monday</asp:listitem> <asp:listitem>Tuesday</asp:listitem> <asp:listitem>Wednesday</asp:listitem> <asp:listitem>Thursday</asp:listitem> <asp:listitem>Friday</asp:listitem> <asp:listitem>Saturday</asp:listitem> </asp:dropdownlist> </td> <td> <asp:dropdownlist id="time" runat="server"> <asp:listitem>10 - 11AM</asp:listitem> <asp:listitem>11 - 12PM</asp:listitem> <asp:listitem>12 - 1PM</asp:listitem> <asp:listitem>3 - 4PM</asp:listitem> <asp:listitem>4 - 5PM</asp:listitem> <asp:listitem>5 - 6PM</asp:listitem> </asp:dropdownlist> </td> </table>
<asp:Button id="Schedule" text="Schedule" onClick="CheckSchedule" runat="server" />
</form> </body> </html>
|
|