?
Solved

ASP.Net Listbox with multiple choice without using ctrl key

Posted on 2012-03-22
3
Medium Priority
?
1,051 Views
Last Modified: 2012-03-27
We have a few pages that use listboxes. They are declared as, for example:
<asp:ListBox ID="lst_Res" SelectionMode="Multiple" AutoPostBack="true" Style="font-family: Arial;
font-size: x-small" runat="server" Height="150px" CssClass="NoPrint" />

Open in new window

This works fine as long as we hold down ctrl or use shift. Any computer tech will feel at home with this. But many users don't know that you need to hold ctrl. So I was wondering if it was possible to make a listbox where you don't have to hold ctrl. Clicking on any item will simply select/deselect it. Note that it still has to submit a postback after each change.
0
Comment
Question by:Cluskitt
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
Shaun Kline earned 1500 total points
ID: 37755699
The simplest solution is usually the best. Instead of overriding the standard way the list box works, why not add a label near the list box telling the user to hold down the ctrl button to select multiple items?
0
 
LVL 18

Author Comment

by:Cluskitt
ID: 37756185
That was a thought that had already occurred. I was just wondering if we could make the .Net ListBox work like the VB6 used to work. There was no need for ctrl, and I thought it likely that someone would come up with a script that would emulate it. It would be preferable, because some users are reaaaaaaally computer incompetent. Even holding ctrl could possibly be too complicated for them, especially having to wait for postback after each click.
0
 
LVL 18

Author Closing Comment

by:Cluskitt
ID: 37770260
Well, no other solution was presented, so it seems that I'll have to do just that.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question