473,587 Members | 2,607 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Rebinding page after image is resized on server not showing new sized image

I have written a photo app that allows the administrator to resize photos in
an admin panel above the photo on the page. When the the new size is
entered, the data is saved into a datastore and the page is rebound. During
the rebining process, the size of the image on the server is phisically
changed to the new size (uses the photo master to size from). This
rebinding works fine for everything except the photo itself. The page does
not show the new size on the web page until the browser refresh button is
pressed. I assume this has something to do with caching but do not know how
to resolve it. If anyone has any ideas, please let me know.

Thanks

Earl
Nov 18 '05 #1
2 1302
"Earl Teigrob" <ea******@hotma il.com> wrote in message
news:O5******** ********@TK2MSF TNGP11.phx.gbl. ..
I have written a photo app that allows the administrator to resize photos in an admin panel above the photo on the page. When the the new size is
entered, the data is saved into a datastore and the page is rebound. During the rebining process, the size of the image on the server is phisically
changed to the new size (uses the photo master to size from). This
rebinding works fine for everything except the photo itself. The page does
not show the new size on the web page until the browser refresh button is
pressed. I assume this has something to do with caching but do not know how to resolve it. If anyone has any ideas, please let me know.

Instead of assuming that this is a caching issue, I'd recommend you look at
the resulting HTML and see if perhaps the size isn't changing in the <img>
tag.

--
John Saunders
John.Saunders at SurfControl.com
Nov 18 '05 #2
Thanks, john, but the size of the image is never set in the image tag to
start with, so that is not the issue. As I mentioned, the images are
phisically resized on the server itself and the tag just uses the actual
size of the image on the server. However, the width property of the table
that holds the image is set to the width of the image (using the width
property on the image itself) and this is being set correctly. For example,
when the width of the image is increased, the table the holds the image is
made wider, based on the new size of the image on the server, but the image
itself is not reloaded from the server to show the new size. (until a
refreash, of course)

I hope this helps to explain it better.

Thanks for your help

Earl
"John Saunders" <john.saunder s at SurfControl.com > wrote in message
news:Oe******** ******@tk2msftn gp13.phx.gbl...
"Earl Teigrob" <ea******@hotma il.com> wrote in message
news:O5******** ********@TK2MSF TNGP11.phx.gbl. ..
I have written a photo app that allows the administrator to resize photos
in
an admin panel above the photo on the page. When the the new size is
entered, the data is saved into a datastore and the page is rebound. During
the rebining process, the size of the image on the server is phisically
changed to the new size (uses the photo master to size from). This
rebinding works fine for everything except the photo itself. The page

does not show the new size on the web page until the browser refresh button is pressed. I assume this has something to do with caching but do not know

how
to resolve it. If anyone has any ideas, please let me know.

Instead of assuming that this is a caching issue, I'd recommend you look

at the resulting HTML and see if perhaps the size isn't changing in the <img>
tag.

--
John Saunders
John.Saunders at SurfControl.com

Nov 18 '05 #3

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

Similar topics

21
3058
by: DraguVaso | last post by:
Hi, I have an inherited DataGrid, that does lots of extra stuff. For exemple drawing a backgroundimage in every cell. The problem is that it's taking too much time (using gdi+), so I want to do it using DirectX. I downloaded already the DSK etc, but I can't find how I need to draw an image on a given position. I don't need stuff to write...
7
1639
by: xiibweb | last post by:
Hi I am struggling to find a code meeting my requirements... I want to display 4 thumbnails of photos in a row (table 1X4). When any thumb is clicked the large image size shud appear just below the 4 thumb aligned as center... along with description of photo. Anyone cn help me out plzz Regards,
3
1701
by: jason | last post by:
Hello. This one is kinda out there. I have asp.net code that will email my yahoo account a <img> like with image on the server. When I open it in yahoo I get the full image on screen. works great. Any way to create an image (in asp.net on the server) of full web page - text and all. Currently I have dynamic on top of that image and can
13
2341
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't reached yet (I have gone all the way to page 50 on Google's results!!). Here are my requirements: • I have a DataGrid. Everything will be done from...
15
5321
by: David Lozzi | last post by:
Howdy, I have a function that uploads an image and that works great. I love ..Nets built in upload, so much easier than 3rd party uploaders! Now I am making a public function that will take the path of the uploaded image, and resize it with the provided dimensions. My function is below. The current function is returning an error when run...
3
4381
by: Mike Dee | last post by:
Hi, I'm having an issue with the status bar in Mozilla and Netscape showing that it is still waiting on the page to load even after it is finished. This problem does NOT occur with IE. In summary, I am using a onLoad event in the BODY tag to communicate back to another server each time a page finishes loading. I do this by using a "new...
6
1803
by: Dave Keen | last post by:
Hi all I am writing a webpage which asks the user for the name of a picture file, then reads the file, resizes if necessary and saves it to the server. The code to read the file is... ' Set permissions for loaded file. Dim FileIOPerm1 As System.Security.Permissions.FileIOPermission FileIOPerm1 = New
1
2230
by: | last post by:
I've built an application that scrapes JPG images of webpages and PDF instances of those webpages automatically from an RSS feed. References to the scraped resources are persisted to our database. I've also built an administrative interface that allows someone to scroll through a datalist of the JPG images of the page and to delete the...
10
7052
by: mishrarajesh44 | last post by:
hii all, I am facing a problem currently.. i have a script for image uploading and resizing.. the image uploading takes place properly for every size images.. but, the resizing works for only small sized iamages.. for eg. resizing takes place for 70 kb sized images but fails for 600kb or more.. my code is below..
0
7843
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...
0
8206
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. ...
0
8340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7967
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...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3840
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...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
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...

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.