473,698 Members | 2,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

scrolling image

Sam
Hope someone can help...

I have an image on the page which i have made scrollable with the
following code:

<div id="Layer1" style="LEFT: 8px; TOP: 368px; height: 180px;
width:780px; position: absolute; overflow-x: scroll">
<asp:image id="Image1" style="Z-INDEX: 105; LEFT: 8px; TOP:
368px" runat="server" ImageUrl="Legen dForm.aspx"></asp:image>
</div>

The problem is this: if the image is for example scrolled as far to
the right as it can go; when doing do a postback, the scrolling image
then returns to is original position (displaying the picture from the
top left). I would like it to retain its scrolled position when doing
postbacks

Is there anyway this is possible?

Thanks
Nov 17 '05 #1
2 3863
Possibly using SmartNavigation . However, be advised that this is still a bit
buggy, and is only supported by IE.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big things are made up of
Lots of Little Things.

"Sam" <re*******@hotm ail.com> wrote in message
news:4e******** *************** ***@posting.goo gle.com...
Hope someone can help...

I have an image on the page which i have made scrollable with the
following code:

<div id="Layer1" style="LEFT: 8px; TOP: 368px; height: 180px;
width:780px; position: absolute; overflow-x: scroll">
<asp:image id="Image1" style="Z-INDEX: 105; LEFT: 8px; TOP:
368px" runat="server" ImageUrl="Legen dForm.aspx"></asp:image>
</div>

The problem is this: if the image is for example scrolled as far to
the right as it can go; when doing do a postback, the scrolling image
then returns to is original position (displaying the picture from the
top left). I would like it to retain its scrolled position when doing
postbacks

Is there anyway this is possible?

Thanks

Nov 17 '05 #2
Hi

Grab and store the location in a hidden input

--
Best Regards
Vidar Petursson
=============== ===============
Microsoft Scripting MVP
http://www.microsoft.com/technet/scriptcenter
=============== ===============
"Sam" <re*******@hotm ail.com> wrote in message
news:4e******** *************** ***@posting.goo gle.com...
Hope someone can help...

I have an image on the page which i have made scrollable with the
following code:

<div id="Layer1" style="LEFT: 8px; TOP: 368px; height: 180px;
width:780px; position: absolute; overflow-x: scroll">
<asp:image id="Image1" style="Z-INDEX: 105; LEFT: 8px; TOP:
368px" runat="server" ImageUrl="Legen dForm.aspx"></asp:image>
</div>

The problem is this: if the image is for example scrolled as far to
the right as it can go; when doing do a postback, the scrolling image
then returns to is original position (displaying the picture from the
top left). I would like it to retain its scrolled position when doing
postbacks

Is there anyway this is possible?

Thanks

Nov 17 '05 #3

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

Similar topics

1
6519
by: delong | last post by:
Hi I am trying to display a large image on the form and make the form scrollable. My image is about 4200 x 7000 pixel. private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphics g=e.Graphics;
1
2920
by: Vangelis Natsios | last post by:
I want to create a page with a scrolling image that will cause different messages to appear on another part of the page (say, another <div>) as the image will scroll. Imagine something like this: Image DIV Text DIV (Visible Area) +-----------+ Image +---------+ +-----------|------------------------+ | | | o | ...
4
19571
by: mr_burns | last post by:
Hi, Is it possible to disble horizontal scrolling using CSS? I want to try and use two backgrounds, one tiling vertically and part of the body background, which will not force scrolling, but one that will be part of a table stretching of to the right, which will force unwanted horizontal scrolling. How is this written in the stylesheet? Cheers Burnsy
12
2734
by: Major Man | last post by:
Hi, I have this .jpg picture that's 700 x 200. What I wanna do is display it on a 300 x 200 window, and have it scroll left and right, back and forth. Can anyone help this newbie? TIA
0
3216
by: Paul Loveless | last post by:
Hi all. I have a user control that contains a picturebox within a panel with the panel set to autoscroll the picturebox. One thing that I have noticed with the default functionality is when you click and drag the scroll box (thumb track) the picturebox does not scroll until you release it. Is there a way to scroll the picturebox while you move the scrollbox (like when you scroll a web page)? Or do you have to use the scroll bar controls...
7
4300
by: Yavuz Bogazci | last post by:
i have the following problem: my customer wants to show some informations in a WinForm. He has Images and Textelements with are connected. It should look like this: scroll << - ... Image + Text + empty space + Image + Text + empty space + Image + Text + empty space ... << - scroll to left how can i solve this problem? can i paste images and textelements to one big image? i dont know! can someone help me please?
3
2595
by: Andy Baxter | last post by:
I have an image scrolling in a viewport for a panoramic image viewer. The viewport can be resized to several set resolutions so people can adjust the size according to their bandwidth. There are hotspots on the image which have been defined using an image map. This map is generated in javascript using the following code (in the object 'tour.'): makeImageMap: function() { // creates an HTML nodeset which is an imagemap for the current...
8
3934
by: Warren Post | last post by:
At <http://snow.prohosting.com/srcopan/dry/test.es.html>, you will see that the background image runs down the left margin. The right hand side of it is faded, watermark style, but it is one single image. my intention is for the header and text to appear to the right of the unfaded portion of the image, and on top of the watermarked portion. At most viewport widths it works as intended. However, if the viewport is narrowed enough to...
0
8603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8893
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7723
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4366
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.