hyperlink image fires twice with smartnav on

V

vMike

I have a hyperlink control. The image is dynamically set to an aspx file.
The image changes based on criteria passed to it on postback. I have noticed
that when smartnavigation is turned on the aspx file is accessed twice
before the picture displays in the browser. When it is turned off it is only
accessed once. I have other image file which are not aspx files on the page.
Does smartnavigation call all image files twice? Or is there something I
should be doing differently with smart nav on. The pages don't flicker as
much with in on so I would like to leave it on but it seems that if all
images are called twice there must be a performance drag.
Mike
 
E

Ezra Epstein

What do you mean when you write "The image is dynamically set to an aspx
file."? To my understanding .aspx files are for entire asp.net pages. How
does this file return an image?

EE
 
V

vMike

My image aspx file is only code with no controls. The code uses the
following to return a certain image plus text of a specified size and
quality based querystring parameters.

Sub Page_Load...
..
..bunch of code here.

mynewimage.Save(Response.OutputStream, ImageFormat.Jpeg)
end Sub

but the file gets called twice.
 

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

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top