Solved

ASP.Net Listbox with multiple choice without using ctrl key

Posted on 2012-03-22
3
989 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 26

Accepted Solution

by:
Shaun Kline earned 500 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

Industry Leaders: 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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

762 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