dropdownlist with several columns

A

Alex Sadomov

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
 
G

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

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");
}
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top