Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Rebinding page after image is resized on server not showing new sized image

Reply
Thread Tools

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

 
 
Earl Teigrob
Guest
Posts: n/a
 
      02-20-2004
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


 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      02-20-2004
"Earl Teigrob" <(E-Mail Removed)> wrote in message
news:O5%(E-Mail Removed)...
> 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


 
Reply With Quote
 
 
 
 
Earl Teigrob
Guest
Posts: n/a
 
      02-20-2004
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:OeKxTI$(E-Mail Removed)...
> "Earl Teigrob" <(E-Mail Removed)> wrote in message
> news:O5%(E-Mail Removed)...
> > 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retain values in a FormView control after rebinding the data Alan Lambert ASP .Net 0 03-29-2010 12:26 PM
showing a list of dynamically resized images... Milsnips ASP .Net 0 09-02-2006 09:30 AM
Oddly sized sized password textbox thechaosengine ASP .Net 1 09-15-2005 07:34 PM
Simple problem: Rebinding DropDownList After More Data Entered on Separate aspx Web Form Keith ASP .Net 4 05-02-2004 02:29 AM
Re: resized image in table extends table width to original image width Sean Jorden HTML 1 08-19-2003 08:59 AM



Advertisments