By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,741 Members | 1,979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,741 IT Pros & Developers. It's quick & easy.

Unselect one listbox when second is selected

P: n/a
rbr
I have two listboxes on an asp.net web control (ascx). I want them to
act non-mutually-exclusive. In other words, if an item in one listbox
is selected, I want the other to be clear.

The problem I am solving is that I have a listbox with active job
postings and a second with inactive job postings for my employer. I
want to be able to just use one button to pull the selected job
posting. Currently, this is impossible since a posting from each
listbox may be selected.

I have tried numerous javascript options without luck. However, I am
admittedly a novice at javascript. In addition, extending the listbox
control is not an option in my environment.

Thank you in advance!

rbr
Sep 23 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"rbr" <ry********@gmail.comwrote in message
news:e8**********************************@c58g2000 hsc.googlegroups.com...
>I have two listboxes on an asp.net web control (ascx). I want them to
act non-mutually-exclusive. In other words, if an item in one listbox
is selected, I want the other to be clear.

The problem I am solving is that I have a listbox with active job
postings and a second with inactive job postings for my employer. I
want to be able to just use one button to pull the selected job
posting. Currently, this is impossible since a posting from each
listbox may be selected.

I have tried numerous javascript options without luck. However, I am
admittedly a novice at javascript. In addition, extending the listbox
control is not an option in my environment.
since its an aspx page and (probably) a server control, you may want to use
Visual Web Developer Express and take a look at the SelectedIndexChanged
event handler for both list boxes. (probably not Javascript)
Sep 24 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.