0

After clicking the label “Click Here,” a drop-down list is popped up to allow user to
select the shipping state, as shown in the picture on the next page

i am confused as to how to get the click here box to work and for the states drop down menu to be clicked on and appear rather then appear as a drop down can you please help?

here is all my code i have done so far it does compile but the last step is tricking me up ( i did download the asp.net toolkit also )


this is my aspx.cs seen below

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void TextBox1_TextChanged(object sender, EventArgs e)
    {

    }
}

default.aspx

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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">
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    <table class="style1">
        <tr>
            <td>
                Shipping State<asp:TextBox ID="TextBox1" runat="server" 
                    ontextchanged="TextBox1_TextChanged"></asp:TextBox>
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
                <table class="style1">
                    <tr>
                        <td>
                            <asp:DropDownList ID="DropDownList1" runat="server">
                                <asp:ListItem>New Jersey</asp:ListItem>
                                <asp:ListItem>New York</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </form>
</body>
</html>
2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by hericles
0

OK, I'm confused. There is no 'Click here' link in your HTML, just a text box and the drop down list.
What is the text box meant to down when typed into? If the drop down list is populated, simply clicking on it will cause it to expand so items can be selected.

Can you be more specific as to the problem?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.