Refresh/Redraw enhancements in IE/ASP.NET

  • Thread starter Thread starter Tom Kaminski [MVP]
  • Start date Start date
T

Tom Kaminski [MVP]

In many of the presentations I've seen about ASP.NET there was talk about
how on postbacks only the data that has changed gets redrawn in the browser.
I'm looking for documentation on this feature so I can share it with my
development staff but so far have been unable to find anything that
discusses it. Do you know what I'm talking about and if so, where I can
find online documentation?

TIA!
 
As far as I know that is not true. I don't think ASP.NET can have any sort
of effect on how the browser renders the HTML it receives.
 
There are numerous posts about SmartNavigation breaking ASP.NET. Be sure to
take a look at them.
 
Yes, it is SmartNavigation -
http://msdn.microsoft.com/library/en-
us/cpref/html/frlrfSystemWebUIPageClassSmartNavigationTopi
c.asp

When you turn it on ASP.Net puts the content that is
going to be updated in iframes giving the appearance that
the page is updating without POSTing back. Haven't used
it myself, but apparently it's buggy.
 
Ed,

I didn't believe you when you mentioned the IFRAME, so I tried it. You were
right!

ASP.NET renders:

<IFRAME ID=__hifSmartNav NAME=__hifSmartNav STYLE=display:none
src="IEsmartnav1"></IFRAME>

right after the body tag. It also renders a script tag looking for
SmartNav.js. That's 9kb of complicated JavaScript, attaching handlers to the
form submit event and others. I'm not sure, but I think I may have caught it
actually moving my HTML into a new IFRAME! I wouldn't be shocked to find out
that it doesn't work.

I _would_ be shocked to find myself ever using it now that I see that I'd
have 9kb worth of somebody else's code to worry about in addition to my own.
Is that 9kb of script code documented anywhere? There's enough of it that it
damn well ought to be documented!
 
Back
Top