G
gsauns
Not sure if this is belongs here, or maybe in SQL...
I have a SQL Server 2005 database where I store a varbinary(MAX)
field. In my Web form, I allow the user to upload a photo to the
database. It's stored in the varbinary field.
I used an HTTP handler to display the image in an HTML image control
on a FormView. I have a button that allows the user to delete the
photo from the database.
This button runs "UPDATE table SET photo=NULL" on the database. That
works fine, the field is set to NULL in the database. However,
whenever I select the record in the FormView from which I deleted the
photo, the html Image control is still the same size as it was when
the photo was in there. The photo is gone, and it gives the "alt"
text, but the control is still big. It persists even when I exit and
re-enter my app. Is there something I have to do to the control, or
the database field, to shrink it back down to original size?
I have a SQL Server 2005 database where I store a varbinary(MAX)
field. In my Web form, I allow the user to upload a photo to the
database. It's stored in the varbinary field.
I used an HTTP handler to display the image in an HTML image control
on a FormView. I have a button that allows the user to delete the
photo from the database.
This button runs "UPDATE table SET photo=NULL" on the database. That
works fine, the field is set to NULL in the database. However,
whenever I select the record in the FormView from which I deleted the
photo, the html Image control is still the same size as it was when
the photo was in there. The photo is gone, and it gives the "alt"
text, but the control is still big. It persists even when I exit and
re-enter my app. Is there something I have to do to the control, or
the database field, to shrink it back down to original size?