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

Web control with horozontal scrolling

P: n/a
I have some log data maintained in a DB that I would like to display on a web page. Some rows of the
DB table are wider than the web page therefore horizontal scrolling will be required to view the
data.

I cannot use a ListBox web control since it does not support horizontal scrolling. In ASP.Net 2.0,
what type of web control can I use to allow horizon scrolling of rows larger than the web page?

PS, some article on the web indicates that I could hack something with <DIVand JavaScript code but
I would like to avoid that if possible.

G.
Aug 15 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
the panel will suppport scrolling. as this is just a div with overflow
style, you must set an absolute size for the scollbars to appear. this
generally means you need client script to resize it to the window size.

note: some will suggest setting width to 100%, but this only valid if inside
another element with an absolute size. older versions of IE supported 100%
without, but its not html 4.0 or xhtml compliant, so you would have to run
in tweaks mode. also any complex markup broke it anyway.

if you re writing web apps, you should learn javascript and the dom.

-- bruce (sqlwork.com)

"Gaetan" <me@somewhere.comwrote in message
news:ml********************************@4ax.com...
>I have some log data maintained in a DB that I would like to display on a
web page. Some rows of the
DB table are wider than the web page therefore horizontal scrolling will
be required to view the
data.

I cannot use a ListBox web control since it does not support horizontal
scrolling. In ASP.Net 2.0,
what type of web control can I use to allow horizon scrolling of rows
larger than the web page?

PS, some article on the web indicates that I could hack something with
<DIVand JavaScript code but
I would like to avoid that if possible.

G.

Aug 15 '06 #2

P: n/a
your options would be:

1) Use a TEXTAREA (Textbox control that's set for multiline). You'll
probably want to disable it.
2) surround your label with a <div style="width: 200px; height: 36px;
overflow: auto">
3) create a css style for your label that defines "width: 200px; height:
36px; overflow: auto; display: inline-block"
"Gaetan" wrote:
I have some log data maintained in a DB that I would like to display on a web page. Some rows of the
DB table are wider than the web page therefore horizontal scrolling will be required to view the
data.

I cannot use a ListBox web control since it does not support horizontal scrolling. In ASP.Net 2.0,
what type of web control can I use to allow horizon scrolling of rows larger than the web page?

PS, some article on the web indicates that I could hack something with <DIVand JavaScript code but
I would like to avoid that if possible.

G.
Aug 15 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.