473,385 Members | 1,798 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,385 software developers and data experts.

Web control with horozontal scrolling

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
2 1554
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: headware | last post by:
I have a <select> control that contains many entries. It allows the user to multi-select a group of them, click a button, and store the selected data in a database. Normally they do this starting...
5
by: sparks | last post by:
This morning I was adding some fields in a database. I double clicked on the control source field to highlight and copy the control name into the name of the control..well I have done this a...
4
by: Steve | last post by:
How do I prevent a tree control from scrolling when an item is selected? I have tried handling the WM_VSCROLL message but that only works when the scroll occurs from the scroll bar. When the tree...
1
by: edi sol | last post by:
Hi, I am writing a hex edit control from a UserControl. I use drawtext method of the graphics object in the OnPaint. When the text which I draw go out of the visible rectangle of the control I...
5
by: Dinsdale | last post by:
I have an application that recieves text data via external input (i.e. serial) and displays it on the screen (we use carraige return as a delimiter). At this point I use a regular old text box and...
3
by: Brian Tkatch | last post by:
I have a form with two DataGrids, which are kept in sync manually via Stored PROCEDURE calls. That is, when a record is selected on the first grid, a stored PROCEDURE is CALLed to Fill() the next...
4
by: ZaphodBBB | last post by:
Hi (to the masters of chaos!!!) I created a report using the wizard. (Access 2003). It has the following sections: Report Header Page Header Company Header Detail Page Footer Report Header.
1
by: --== Alain ==-- | last post by:
Hi, I have a question about drawing windowed control. For example, i have a windowed control, let's called it C1 (as container for example). its width = 300 px and height = 200 px. C1...
5
tranc3d
by: tranc3d | last post by:
I want to understand the mechanism behind the painting of a control: what are the functions (handlers) involved and when they are called. I have a custom control based on a Panel. I think the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...

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.