473,226 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

vertical Scroll Bar with CheckBoxList in ASP.NET

Hi,

I'm using the CheckBoxList control in ASP.NET for Web development. This
checkboxlist is bound by the database. If we have more items for this
checkbox list, it takes space on the page. I want to have vertical scroll
bar (like CheckedListBox in Window development) to save space. Can we do
that in ASP.NET ?
Please give me your suggestions ? Thanks in advance.
Nov 19 '05 #1
7 15604
Put it into a scrolling div.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"bienwell" <bi******@hotmail.com> wrote in message
news:eo**************@TK2MSFTNGP14.phx.gbl...
Hi,

I'm using the CheckBoxList control in ASP.NET for Web development. This
checkboxlist is bound by the database. If we have more items for this
checkbox list, it takes space on the page. I want to have vertical scroll
bar (like CheckedListBox in Window development) to save space. Can we do
that in ASP.NET ?
Please give me your suggestions ? Thanks in advance.

Nov 19 '05 #2
Kevin,

Is "scrolling div" a property of CheckBoxList ? How do I put the
CheckBoxList in it ? I don't see this property for CheckBoxList ?
=========================================
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uA*************@TK2MSFTNGP15.phx.gbl...
Put it into a scrolling div.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"bienwell" <bi******@hotmail.com> wrote in message
news:eo**************@TK2MSFTNGP14.phx.gbl...
Hi,

I'm using the CheckBoxList control in ASP.NET for Web development. This
checkboxlist is bound by the database. If we have more items for this
checkbox list, it takes space on the page. I want to have vertical scroll bar (like CheckedListBox in Window development) to save space. Can we do
that in ASP.NET ?
Please give me your suggestions ? Thanks in advance.


Nov 19 '05 #3
A div is a container. Put the CheckboxList inside it.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"bienwell" <bi******@hotmail.com> wrote in message
news:Oq*************@TK2MSFTNGP12.phx.gbl...
Kevin,

Is "scrolling div" a property of CheckBoxList ? How do I put the
CheckBoxList in it ? I don't see this property for CheckBoxList ?
=========================================
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uA*************@TK2MSFTNGP15.phx.gbl...
Put it into a scrolling div.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"bienwell" <bi******@hotmail.com> wrote in message
news:eo**************@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> I'm using the CheckBoxList control in ASP.NET for Web development.
> This
> checkboxlist is bound by the database. If we have more items for this
> checkbox list, it takes space on the page. I want to have vertical scroll > bar (like CheckedListBox in Window development) to save space. Can we
> do
> that in ASP.NET ?
> Please give me your suggestions ? Thanks in advance.
>
>



Nov 19 '05 #4
Hi Kevin,

first of all: Before you want to develop a Web-based application make sure
you know enough about web-standards! Like you would do when trying to
develop a windows application (you must know about drawing controls).

A "scrolling div" is a html-tag wrapped around your control.

<div style="width: 200px; height: 100px; scroll: auto;">
... here comes your list-control ...
</div>

Be aware that this does not work for every browser!

Regards
Patrick

"bienwell" wrote:
Kevin,

Is "scrolling div" a property of CheckBoxList ? How do I put the
CheckBoxList in it ? I don't see this property for CheckBoxList ?
=========================================
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uA*************@TK2MSFTNGP15.phx.gbl...
Put it into a scrolling div.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"bienwell" <bi******@hotmail.com> wrote in message
news:eo**************@TK2MSFTNGP14.phx.gbl...
Hi,

I'm using the CheckBoxList control in ASP.NET for Web development. This
checkboxlist is bound by the database. If we have more items for this
checkbox list, it takes space on the page. I want to have vertical scroll bar (like CheckedListBox in Window development) to save space. Can we do
that in ASP.NET ?
Please give me your suggestions ? Thanks in advance.



Nov 19 '05 #5
Huh? I didn't ask a question, Patrick.

--

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Patrick" <Pa*****@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
Hi Kevin,

first of all: Before you want to develop a Web-based application make
sure
you know enough about web-standards! Like you would do when trying to
develop a windows application (you must know about drawing controls).

A "scrolling div" is a html-tag wrapped around your control.

<div style="width: 200px; height: 100px; scroll: auto;">
... here comes your list-control ...
</div>

Be aware that this does not work for every browser!

Regards
Patrick

"bienwell" wrote:
Kevin,

Is "scrolling div" a property of CheckBoxList ? How do I put the
CheckBoxList in it ? I don't see this property for CheckBoxList ?
=========================================
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uA*************@TK2MSFTNGP15.phx.gbl...
> Put it into a scrolling div.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> What You Seek Is What You Get.
>
> "bienwell" <bi******@hotmail.com> wrote in message
> news:eo**************@TK2MSFTNGP14.phx.gbl...
> > Hi,
> >
> > I'm using the CheckBoxList control in ASP.NET for Web development.
> > This
> > checkboxlist is bound by the database. If we have more items for
> > this
> > checkbox list, it takes space on the page. I want to have vertical

scroll
> > bar (like CheckedListBox in Window development) to save space. Can we
> > do
> > that in ASP.NET ?
> > Please give me your suggestions ? Thanks in advance.
> >
> >
>
>


Nov 19 '05 #6
Oh, sorry Kevin! I ment bienwell. My fault.

"Kevin Spencer" wrote:
Huh? I didn't ask a question, Patrick.

--

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"Patrick" <Pa*****@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com...
Hi Kevin,

first of all: Before you want to develop a Web-based application make
sure
you know enough about web-standards! Like you would do when trying to
develop a windows application (you must know about drawing controls).

A "scrolling div" is a html-tag wrapped around your control.

<div style="width: 200px; height: 100px; scroll: auto;">
... here comes your list-control ...
</div>

Be aware that this does not work for every browser!

Regards
Patrick

"bienwell" wrote:
Kevin,

Is "scrolling div" a property of CheckBoxList ? How do I put the
CheckBoxList in it ? I don't see this property for CheckBoxList ?
=========================================
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uA*************@TK2MSFTNGP15.phx.gbl...
> Put it into a scrolling div.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> What You Seek Is What You Get.
>
> "bienwell" <bi******@hotmail.com> wrote in message
> news:eo**************@TK2MSFTNGP14.phx.gbl...
> > Hi,
> >
> > I'm using the CheckBoxList control in ASP.NET for Web development.
> > This
> > checkboxlist is bound by the database. If we have more items for
> > this
> > checkbox list, it takes space on the page. I want to have vertical
scroll
> > bar (like CheckedListBox in Window development) to save space. Can we
> > do
> > that in ASP.NET ?
> > Please give me your suggestions ? Thanks in advance.
> >
> >
>
>


Nov 19 '05 #7
Patrick,

I've tried it like you suggested, but the vertical bar didn't show up (both
in IE and Netscape 7.1). My co-worker developed a window application with
VB.NET and used CheckedListBox control to display databound by database; it
had the vertical scroll bar. In ASP.NET with web development, it does not
have CheckedListBox control and I have to use CheckboxList control.

Here is my code:

<div style="width: 200px; height: 100px; scroll: auto;">
<asp:CheckBoxList id="Field_CheckList"
OnSelectedIndexChanged="Field_CheckedAll_Changed" runat="server"
AutoPostBack="true" CellPadding="5" CellSpacing="5" RepeatColumns="1"
RepeatDirection="Vertical" RepeatLayout="Flow" TextAlign="Right"
</asp:CheckBoxList> </div>

Any suggestions ? Thanks again.
=========================================
"Patrick" <Pa*****@discussions.microsoft.com> wrote in message
news:52**********************************@microsof t.com... Hi Kevin,

first of all: Before you want to develop a Web-based application make sure you know enough about web-standards! Like you would do when trying to
develop a windows application (you must know about drawing controls).

A "scrolling div" is a html-tag wrapped around your control.

<div style="width: 200px; height: 100px; scroll: auto;">
... here comes your list-control ...
</div>

Be aware that this does not work for every browser!

Regards
Patrick

"bienwell" wrote:
Kevin,

Is "scrolling div" a property of CheckBoxList ? How do I put the
CheckBoxList in it ? I don't see this property for CheckBoxList ?
=========================================
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uA*************@TK2MSFTNGP15.phx.gbl...
Put it into a scrolling div.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
What You Seek Is What You Get.

"bienwell" <bi******@hotmail.com> wrote in message
news:eo**************@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> I'm using the CheckBoxList control in ASP.NET for Web development. This > checkboxlist is bound by the database. If we have more items for this > checkbox list, it takes space on the page. I want to have vertical

scroll
> bar (like CheckedListBox in Window development) to save space. Can we do > that in ASP.NET ?
> Please give me your suggestions ? Thanks in advance.
>
>


Nov 19 '05 #8

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

Similar topics

0
by: Sachin | last post by:
How to match the look and feel of vertical scroll bar with the inbuilt vertical scroll bars of some controls like PrintPreviewControl, Rich Text box , etc. Their scroll bars look blue where the...
2
by: Framework fan | last post by:
Hello. What is the best way of displaying a large list of checkboxes? I tried using a checkbox list control, but even if you set the height property, the control shows *all* of the checkboxes,...
2
by: P2P | last post by:
Hi I am wondering if someone know of a free cross-browsers vertical scrolling script that - is cross cross-browsers - will call the scrolling content from an external html page or from a...
0
by: Greg | last post by:
I've made a datagrid multiline (for anyone interested, I used an adaptation of the code at http://64.78.52.104/FAQ/WinForms/FAQ_c44c.asp). This has introduced a very serious issue: the vertical...
3
by: lolo | last post by:
hello. happy new year. I'm trying to build a website for my wife and she is adament on having a horizontal thumbnail scrolling div. great. I have a good vertical scrolling thing, but can't...
2
by: akm | last post by:
I am facing an issue with the vertical scroll bar. Actually i am using data grid to display the data in my tables, and also i am using the same view form to diplay the data for different tables....
2
by: Sean Liming \(MVP\) | last post by:
I have a communication program using the SerialPort control. The application performs the serial read in sPort_DataReceived thread and data is displayed in a RichTextBox using the callback/invoke...
7
by: Lit | last post by:
Hi, How can I capture the vertical scroll bar position for a Listbox. I have a Listbox of 100 items + when I click on it I post back remove the item selected. After returning to the client...
3
by: dbuchanan | last post by:
When there are only a few items in the CheckBoxList they are distributed in a sparse maner such as one at top, one in the middle and one at the bottom. Is there any way to have the vertical...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.