CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Peter's Gekko

public Blog MyNotepad : Imho { }

Smart navigation : view source / save as in IE does not do what you expect it to do.

Here's another quirck in smart naviagation.

I have an aspx page with a lot of optional panels. In the prerender event the visibilty of the panels is set. This way I have the functionality of a multiple tabbed page. A radiobuttonlist makes up the tab-index, the panels are the tab-pages. Works great.

Things get weird when I want to check the html emitted via Save/as or view source in IE. When smartnavigation is set to true IE will always return the HTML as it was on the first roundtrip. In my case the initial tab. Disabling smartnav or setting another initial tab does produce the html I was looking for.

Peter



Comments

Peter's Gekko said:

SmartNavigation is a feature which can cause quite a lot of trouble. It is a property of an asp.net webpage...
# January 11, 2006 7:28 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add
Check out Devlicio.us!