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

Discussion in 'ASP .Net' started by Earl Teigrob, Feb 20, 2004.

  1. Earl Teigrob

    Earl Teigrob Guest

    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
     
    Earl Teigrob, Feb 20, 2004
    #1
    1. Advertising

  2. "Earl Teigrob" <> wrote in message
    news:O5%...
    > 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
     
    John Saunders, Feb 20, 2004
    #2
    1. Advertising

  3. Earl Teigrob

    Earl Teigrob Guest

    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$...
    > "Earl Teigrob" <> wrote in message
    > news:O5%...
    > > 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
    >
    >
     
    Earl Teigrob, Feb 20, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Keith
    Replies:
    4
    Views:
    749
    DalePres
    May 2, 2004
  2. thechaosengine

    Oddly sized sized password textbox

    thechaosengine, Sep 15, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    590
    David Hearn
    Sep 15, 2005
  3. Sean Jorden
    Replies:
    1
    Views:
    604
    laurie
    Aug 19, 2003
  4. Milsnips
    Replies:
    0
    Views:
    351
    Milsnips
    Sep 2, 2006
  5. Alan Lambert
    Replies:
    0
    Views:
    736
    Alan Lambert
    Mar 29, 2010
Loading...

Share This Page