|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Flickering imagebutton with smartnavigation onWe 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 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 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.
Other interesting topics
detailsview, inserting new record and request.querystring
DataGrid not responding to Update/Cancel click Get data, make textBoxes, edit values, and re-save to database. Simple? A question about Repeater control Datagrid soes not page nor edits Web User Control EnableViewState=False creates problems with Visible & Enabled object reference not set as an instance of an object disabling back button of window Download Visual Studio 2005 Full |
|||||||||||||||||||||||