Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 1st, 2005, 02:11 PM
Registered User
 
Join Date: Jun 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to braheem Send a message via Yahoo to braheem
Default Creating a method

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


<%@ 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>






Similar Threads
Thread Thread Starter Forum Replies Last Post
About Method VeradisSanthanam ASP.NET 2.0 Basics 1 June 19th, 2007 06:52 AM
method amit_p_patel VB How-To 2 May 25th, 2007 01:46 AM
Why is this method placed in filip BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 1 August 25th, 2006 09:40 PM
Best method rastham SQL Server 2000 2 February 16th, 2006 12:59 AM
Method StanArtis BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 1 December 6th, 2004 06:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.