Home All Groups Group Topic Archive Search About

Flickering imagebutton with smartnavigation on

Author
1 Feb 2006 4:53 PM
Juergen Theis
Hi, everyone

We have an aspx page with an imagebutton on it. Each time the button is
clicked an image is generated on server side and sent back as an image
stream to the client. Therefor we are using another simple aspx page,
which is set as source for the imagebutton. The following snippet shows
the resulting HTML code:
<input type="image" id="xyz" src="ImageServer.aspx?id=1306262728...>

The ImageServer.aspx only contains some scripting code to get the image
data.
SmartNavigation is set to true, because we are interrested in changing
the image without flickering. Everything works fine!

The problem:

But after we click on a link to go to another page and after we return
back to our aspx page the behaviour changed: With each click on the
imagebutton we get a flicker.

Do you have any explanation? The only thing I can say is that each time
the ImageServer.aspx page is loaded twice. There has been a similar
question is this group in 2003 (see: hyperlink image fires twice with
smartnav on), but unfortunately no answers. Are there any ideas how to
avoid the flickering?

Thanks in advance,
Juergen

Author
2 Feb 2006 1:32 AM
Sonu Kapoor
Are you using the SmartNavigation only to maintain the scroll positions during postbacks? SmartNavigation should be avoided in any case - it has several drawbacks as explained here:

http://weblogs.asp.net/ksamaschke/archive/2003/04/27/6085.aspx

Sonu Kapoor [MVP]
---
Posted via www.DotNetSlackers.com
Are all your drivers up to date? click for free checkup

Author
2 Feb 2006 11:57 AM
Juergen Theis
Maintaining the scroll positions is only one reason for us to use
SmartNavigation. The images are "screen shots" of an interactive Gantt
chart component running on server side. When clicking on the button we
generate another image which only slightly differs from the last one.
In order to give the user the impression that nearly nothing has
changed (except e.g. that he has marked a bar in the diagram or that he
has collapsed a treeview structure in the table of the chart) we want
the images to be exchanged without flickering. The user should feel
like using a conventional desktop application.

Bookmark and Share