IMG Elements acquiring height and width attributes "automatically"

G

Guest

I have an ASP.NET application that is mysteriously acquiring height and width
attributes on a particular IMG element on multiple pages. This is not being
caused by someone editing or uploading new copies of the files.

There are various scripting and "active" technologies enabled on the server:

ASP.NET
ASP
Front Page Extensions
Perl
PHP

Could any of these be editing ASPX files to add size attributes to IMG
elements? Are there any other circumstances in which this might happen?
 
G

Guest

I can't speak for whatever tools you are using to edit/create the Perl or PHP
pages but if you are using VS for the ASP.NET ones then NO.
Now, if you are applying these images in the Designer (or FrontPage) and
grab the edge of the image you will get the Height & Width since it thinks
you are adjusting them......
Again though, any of these tags will be coming in from an editor though, not
from the server....
 
G

Guest

There aren't any PHP or Perl pages or scripts in fact. All Pages are ASPX or
HTML and were all produced by Visual Studio. It is a bit weird to say the
least that these pages appear to be editing themselves. I have several
instances of this application installed on the same server and only one is
exhibiting this behaviour. Nobody has edited the files or even opened them in
an editor; nor have they uploaded edited copies of the pages.

I thought it might have something to do with the image size: in this case it
is large enough to cause a fixed width table to "stretch" to accommodate it.

I have never come across it, but I wondered if there Is any autoresizing
functionality in one of the server technologies that might be editing the
pages. Sounds highly undesirable - just wondered if anyone else had
experienced this.

--
Paul Taylor
Dotcom Software Solutions
www.dotcomsoftwaresolutions.co.uk
 
P

Patrice

Do you see this as attributes in pixels in the client side HTML markup ?

If yes it's likely that you have some server side code that grabs the size
and use it to set these attributes in the HTML code (especaiilyl as you say
you have this in a single page but not in others).
 
G

Guest

Curiously, the height/width attributes actually appear in the aspx page when
viewed on the server. (Obviously they also appear in the client-side markup
too). That's what's so baffling. I can upload the pages and they are OK for a
period, then the image resizes itself. It happens in multiple pages in a
single site, not just one one page.

--
Paul Taylor
Dotcom Software Solutions
www.dotcomsoftwaresolutions.co.uk
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,015
Latest member
AmbrosePal

Latest Threads

Top