471,354 Members | 1,477 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 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 15441
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Sachin | last post: by
2 posts views Thread by Framework fan | last post: by
2 posts views Thread by Sean Liming \(MVP\) | last post: by
7 posts views Thread by Lit | last post: by
3 posts views Thread by dbuchanan | last post: by

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.