Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > vertical Scroll Bar with CheckBoxList in ASP.NET

Reply
Thread Tools

vertical Scroll Bar with CheckBoxList in ASP.NET

 
 
bienwell
Guest
Posts: n/a
 
      04-21-2005
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.


 
Reply With Quote
 
 
 
 
Kevin Spencer
Guest
Posts: n/a
 
      04-21-2005
Put it into a scrolling div.

--
HTH,

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

"bienwell" <> wrote in message
news:...
> 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.
>
>



 
Reply With Quote
 
 
 
 
bienwell
Guest
Posts: n/a
 
      04-21-2005
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" <> wrote in message
news:...
> Put it into a scrolling div.
>
> --
> HTH,
>
> Kevin Spencer
> Microsoft MVP
> .Net Developer
> What You Seek Is What You Get.
>
> "bienwell" <> wrote in message
> news:...
> > 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.
> >
> >

>
>



 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      04-21-2005
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" <> wrote in message
news:...
> 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" <> wrote in message
> news:...
>> Put it into a scrolling div.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> What You Seek Is What You Get.
>>
>> "bienwell" <> wrote in message
>> news:...
>> > 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.
>> >
>> >

>>
>>

>
>



 
Reply With Quote
 
=?Utf-8?B?UGF0cmljaw==?=
Guest
Posts: n/a
 
      04-21-2005
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" <> wrote in message
> news:...
> > Put it into a scrolling div.
> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > What You Seek Is What You Get.
> >
> > "bienwell" <> wrote in message
> > news:...
> > > 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.
> > >
> > >

> >
> >

>
>
>

 
Reply With Quote
 
Kevin Spencer
Guest
Posts: n/a
 
      04-21-2005
Huh? I didn't ask a question, Patrick.

--

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

"Patrick" <> wrote in message
news:52850334-B107-441B-B7DB-...
> 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" <> wrote in message
>> news:...
>> > Put it into a scrolling div.
>> >
>> > --
>> > HTH,
>> >
>> > Kevin Spencer
>> > Microsoft MVP
>> > .Net Developer
>> > What You Seek Is What You Get.
>> >
>> > "bienwell" <> wrote in message
>> > news:...
>> > > 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.
>> > >
>> > >
>> >
>> >

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?UGF0cmljaw==?=
Guest
Posts: n/a
 
      04-21-2005
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" <> wrote in message
> news:52850334-B107-441B-B7DB-...
> > 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" <> wrote in message
> >> news:...
> >> > Put it into a scrolling div.
> >> >
> >> > --
> >> > HTH,
> >> >
> >> > Kevin Spencer
> >> > Microsoft MVP
> >> > .Net Developer
> >> > What You Seek Is What You Get.
> >> >
> >> > "bienwell" <> wrote in message
> >> > news:...
> >> > > 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.
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
bienwell
Guest
Posts: n/a
 
      04-22-2005
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" <> wrote in message
news:52850334-B107-441B-B7DB-...
> 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" <> wrote in message
> > news:...
> > > Put it into a scrolling div.
> > >
> > > --
> > > HTH,
> > >
> > > Kevin Spencer
> > > Microsoft MVP
> > > .Net Developer
> > > What You Seek Is What You Get.
> > >
> > > "bienwell" <> wrote in message
> > > news:...
> > > > 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.
> > > >
> > > >
> > >
> > >

> >
> >
> >



 
Reply With Quote
 
vabraham vabraham is offline
Junior Member
Join Date: Dec 2011
Posts: 1
 
      12-07-2011
<div style="width: 200px; height: 100px; overflow: auto">
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python JavaScript solution to hold vertical scroll bar David Pratt Python 0 06-28-2005 03:13 AM
How to add a vertical scroll bar to a CheckBoxList Server control in ASP.NET Marshal Antony ASP .Net Web Controls 1 12-31-2003 12:07 AM
Can the DIV tag be STYLEd with only a vertical scroll bar? Guy HTML 1 12-13-2003 04:48 AM
Checkboxlist control - would like vertical scroll bar Framework fan ASP .Net 2 12-02-2003 04:09 PM
How to set up a vertical scroll bar for my datagrid control? Mircea Pleteriu ASP .Net Datagrid Control 4 07-17-2003 06:20 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57