472,783 Members | 926 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,783 software developers and data experts.

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 1266
"Earl Teigrob" <ea******@hotmail.com> wrote in message
news:O5****************@TK2MSFTNGP11.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.saunders at SurfControl.com> wrote in message
news:Oe**************@tk2msftngp13.phx.gbl...
"Earl Teigrob" <ea******@hotmail.com> wrote in message
news:O5****************@TK2MSFTNGP11.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
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...
7
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...
3
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...
13
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...
15
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...
3
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...
6
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...
1
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....
10
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...
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.