473,663 Members | 2,877 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ListItems as checkbox in a listbox

Can we have a listbox containing checkboxes in asp.net.
I do not want to use checkbox list control as it does not
have scrollbar facility.
Nov 19 '05 #1
1 1516
You could place the checkbox list in a div which has the style
"overflow: scroll" applied and has a fixed height.

----
- Wilco Bauwer
Blog & Custom Controls @ http://wilcoding.xs4all.nl

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8886
by: Bill Dudek | last post by:
Does vb.net have a listbox with a checkbox style like in vb6? I didn't even see a style option under properties. I'm just starting in .net and am trying to port an existing application over. Thanks, Bill
1
1801
by: Stephen | last post by:
Im very new to coding and I was wondering if anyone could please tell me how to select all the items in a listbox when a checkbox is checked, and then when the checkbox is unchecked to unselected the items in the listbox. Here is the event I would like to put this into. private void chkSelectAll_CheckedChanged(object sender, System.EventArgs e) { }
4
14529
by: Thomas | last post by:
Hello; I am creating a multiselect listbox and I would like to use checkboxes to indicate which items are selected (rather than the default highlighting.) I would then place these selected items in a table. I would also like to have the ability to "select all" and "deselect all". Any help on accomplishing the above would be greatly appreciated. Thanks;
3
1778
by: Vaughn | last post by:
I have a textbox in my Win form that can be filled when a user chooses an emplcode from a combobox and when the value is returned from another form (double-clicks on a separate listbox). What event can I use to find out how the textbox got filled? In my case, if the textbox is filled when the user double-clicked on a separate listbox, I'd like to run VerifyEmp() method. If it's via the combobox or by hand, I don't do anything. Someone...
3
5624
by: mike | last post by:
How do i do the following: lbCountries.SelectedValue = "826"; lbCountries.SelectedValue = "840"; Basically i've set the selectmode to multiple and want to select multiple values of the listbox on databind. the problem is this only selects the last row "840" -- i would imagine this
2
9038
by: Edmilson | last post by:
Hello All I have a Datalist where each "Item" contains a checkbox (among other things). I want the user to be able to click on one or more checkboxes, click the Send button, and have something done to the Items that had the check boxes selected. Seems like a common task. I was easily able to do something like this in classic ASP. But I'm lost in ASP.NET. I´m using VB and I hope you can point me in the right direction...
1
361
by: | last post by:
Hi, I have a listbox called lstFolders. I select the folder names from a database and return them in ascending order. However, when I do the listbox.items.insert(0, new instance) method, the items that are supposed to come back on in ascending order are the exact opposite order. The first one is at the bottom of the list.
1
2406
by: Eric Robishaw | last post by:
I'm adding items to a CheckBoxList Control, and need the text in each checkbox list item to be a specific color. Here's what I'm trying: ListItem li = new ListItem(GroupName, GroupID); li.Attributes.Add("ForeColor", GroupColor); GroupList.Items.Add (li); When viewing the produced HTML... there is no ForeColor attribute being added. My guess is because each list item is really comprised of two items: 1) CheckBox and 2) A label...
0
1007
by: K B | last post by:
I'm using ASP.NET 2.0 and am still struggling. I use the following code to reorder items in a listbox. When complete, a Save button saves each item to a database. Works fine for the first click (runat=Server) but on subsequent use the item just seems to go anywhere...usually to the top of the list. PLEASE, how can I accomplish this using a listbox control and code (not javascript)? Dim mSelectedIndex, mOtherIndex As Integer
0
8436
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8858
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8548
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8634
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2000
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.