473,327 Members | 2,012 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,327 software developers and data experts.

Simple Question...Please Help...

Hi,

I am havinf difficulty achieving what I'm trying to achieve. My basic idea
is to load an image on to an asp.net page, on a fixed size of the page so
that, if it is quite big, I can scroll through it. I want the rest of the
page for some more contols.

All I am able to do presently is to display the image, but it takes the
whole page size without giving me the facility of viewing the rest of the
controls at the same time.

So in short I want a way of displaying an image on the page, on a fixed size
of the page, so that I can scroll through the rest of the image. That gives
me enough space on the page to put the rest of the controls.

I'll be glad if anyone of you can provide me with examples of help me out
here.

Will appreciate it,

Thanks,

I.A
Nov 19 '05 #1
5 904
Irfan:
Have you tried simply wrapping it in a div with the overflow style set to
scroll?

<div style="overflow:scroll;width:200;height:200;"><img
src="SOMETHING.jpg"></div>

you must specify the height/width of the div....and it'll scroll the rest..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"Irfan Akram" <Ir********@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
Hi,

I am havinf difficulty achieving what I'm trying to achieve. My basic idea
is to load an image on to an asp.net page, on a fixed size of the page so
that, if it is quite big, I can scroll through it. I want the rest of the
page for some more contols.

All I am able to do presently is to display the image, but it takes the
whole page size without giving me the facility of viewing the rest of the
controls at the same time.

So in short I want a way of displaying an image on the page, on a fixed size of the page, so that I can scroll through the rest of the image. That gives me enough space on the page to put the rest of the controls.

I'll be glad if anyone of you can provide me with examples of help me out
here.

Will appreciate it,

Thanks,

I.A

Nov 19 '05 #2
Add the height and width attributes to the image control.

--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------

Nov 19 '05 #3
Use a div, and set scrolling on it with CSS.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Neither a follower nor a lender be.

"Irfan Akram" <Ir********@discussions.microsoft.com> wrote in message
news:C7**********************************@microsof t.com...
Hi,

I am havinf difficulty achieving what I'm trying to achieve. My basic idea
is to load an image on to an asp.net page, on a fixed size of the page so
that, if it is quite big, I can scroll through it. I want the rest of the
page for some more contols.

All I am able to do presently is to display the image, but it takes the
whole page size without giving me the facility of viewing the rest of the
controls at the same time.

So in short I want a way of displaying an image on the page, on a fixed
size
of the page, so that I can scroll through the rest of the image. That
gives
me enough space on the page to put the rest of the controls.

I'll be glad if anyone of you can provide me with examples of help me out
here.

Will appreciate it,

Thanks,

I.A

Nov 19 '05 #4
Oops! I misunderstood the question. :D
--
Cheers,
Gaurav Vaish
http://www.mastergaurav.org
http://mastergaurav.blogspot.com
--------------------------------

Nov 19 '05 #5
Thanks ever so much guys...

You are all stars...

Irfan..
Nov 19 '05 #6

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

Similar topics

38
by: jrlen balane | last post by:
basically what the code does is transmit data to a hardware and then receive data that the hardware will transmit. import serial import string import time from struct import * ser =...
3
by: Patchwork | last post by:
Hi Everyone, Please take a look at the following (simple and fun) program: //////////////////////////////////////////////////////////////////////////// ///////////// // Monster Munch, example...
22
by: lokman | last post by:
Hi, In the following code, can someone tell me the difference between *p++ and p++ ? I can see both achieve the same result. Thanks a lot !
3
by: Peter | last post by:
Hello Thanks for reviewing my question. I would like to know how can I programmatically select a node Thanks in Advanc Peter
0
by: Alan Silver | last post by:
Hello, I am having a problem setting and resetting cookies. I'm sure I just doing something really stupid as this is such a basic issue, but I can find any answer. Please can someone help me? ...
9
by: NewInTheGame | last post by:
I'm a beginner in VB.Net. I'm actually taking a class & so far I understand everything, but I suck when it comes to arrays. I'm sure that this is simple (I'm ashamed of asking :oops: )... I...
2
by: Jeff | last post by:
I'm new to vb.net web developer 2005. I assume that this is the correct web site for this question, but please let me know if there is another that is better. I'm having difficulty finding the...
41
by: SkyBlue | last post by:
Hi, can someone explain why the following simple C code segfaulted? I've stared it for 30mins but couldn't find the problem. Thx in advance #include <stdio.h> int main() { char *one; char...
6
by: JonathanOrlev | last post by:
Hello everyone, I have a newbe question: In Access (2003) VBA, what is the difference between a Module and a Class Module in the VBA development environment? If I remember correctly, new...
17
by: Chris M. Thomasson | last post by:
I use the following technique in all of my C++ projects; here is the example code with error checking omitted for brevity: _________________________________________________________________ /*...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.