dropdownlist with several columns

Discussion in 'ASP .Net' started by Alex Sadomov, Jun 8, 2007.

  1. Alex Sadomov

    Alex Sadomov Guest

    Hi
    Is there control for web which looks like as simple dropdownlist, but when
    selected it shows several columns instead one as standard dropdownlist does?
    The example of similiar control can be found in MS Access application
    Alex Sadomov, Jun 8, 2007
    #1
    1. Advertising

  2. On Jun 8, 10:35 am, Alex Sadomov <> wrote:
    > Hi
    > Is there control for web which looks like as simple dropdownlist, but when
    > selected it shows several columns instead one as standard dropdownlist does?
    > The example of similiar control can be found in MS Access application


    That's something can be easily done using a DataList control and
    javascript

    Add a link

    <a onclick="script_to_show_hidden_div();" href="#">Show 'dropdown'</a>

    Add a div

    <div id="dropdown1" style="display: none">
    <asp:DataList .......></asp:DataList>
    </div>

    That's almost all.

    script_to_show_hidden_div() {
    document.getElementById('dropdown1').style.display=(document.getElementById('dropdown1').style.display=="block" ?
    "none" : "block");
    }
    Alexey Smirnov, Jun 8, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. helpful sql
    Replies:
    0
    Views:
    807
    helpful sql
    May 19, 2005
  2. Andy
    Replies:
    0
    Views:
    344
  3. Ivan

    Several DropDownList Controls SelectedItem Problem

    Ivan, Nov 24, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    124
    Alan Corbett \(.NET MVP\)
    Nov 25, 2003
  4. Alex Sadomov

    dropdownlist with several coumns

    Alex Sadomov, Jun 8, 2007, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    110
    Alex Sadomov
    Jun 8, 2007
  5. Victor \Zverok\ Shepelev

    RDOC: several related modules in several C files

    Victor \Zverok\ Shepelev, Mar 6, 2007, in forum: Ruby
    Replies:
    3
    Views:
    180
    Max Lapshin
    Mar 16, 2007
Loading...

Share This Page