Page does not return with smartnavigation on

M

morrisdn13

I have encountered a very strange problem that makes it look like the page
is not recreated in entirety after a postback when I turn on
smartnavigation.

If I click on a server control, the page is returned blank. I have a
JavaScript routine displaying a session countdown in the browser statusbar
that continues counting without resetting as it normally would after a
postback. An error icon is displayed in the browser statusbar after the
postback which displays "Error: document.body is null or not an object" -
obviously related to the JavaScript routine that fires from the body onload
event. Right-clicking on the page does not bring up the context menu.
Attempting to save the page results in the browser causes a postback that
does save the page to file but still the original browser displays a blank
page. Hitting the refresh button does result in a page being rendered. I
would really like to use smartnavigation on this particular page. Any
ideas?
 
G

Guest

Hi,

"Smart Navigation" is not recommended. Coz' of performance issues.

Sometimes,I mean it, scripts won't work as expected when smart navigations
is turned on.... I don't know it's IE problem or smartnavigation problem.

Cheers,

Jerome. M
 
G

Guest

HI,

Are you setting smartnavigation=true in code... if it so do it in the page
dirctive of the .aspx file.

Cheers,

Jerome. M
 
M

morrisdn13

Setting Smartnavigation to true in either code or the aspx does not make any
difference. I know that this can help resolve similar problems when doing a
server.transfer with smartnav on, but it does not help this problem.



It is not an issue with intefering with my scripts. I have the same effect
with the scripts commented out.



I know about the performance tradeoff regarding smartnav and rarely use it,
however, this is one of those rare cases where the design goal of a
particular page could benefit from the asp.net smartnav feature (assuming
that it was actually intended to have some practical applications and was
not just created as a device to make web applications perform poorly)


I have not been able to find any information on this type of problem
anywhere so I am posting here hoping that there may be a known resolution
other than simply not using the feature.
 
J

jasonkester

Here's a quick piece of advice that will get you far in this world.
Never, under any circumstances, use any build-in feature of your chosen
development that is prefixed with the word "Smart" or "Magic."

SmartNavigation, MagicQuotes, SmartWhatever. These are features built
in specifically to cause you crazy runtime errors by secretly changing
things behind the scenes. This one, in particular will overwrite any
OnLoad event with its own script that expects your document to be well
formed HTML. Since your document is clearly not well formed, it is
falling back to its secondary behavior, which is to break everything
and pop up script error messages to your users.

Do a global search and replace on your whole project, and turn them all
off.

Good Luck!

Jason
http://www.expatsoftware.com/
 
S

Steven Cheng[MSFT]

Hi Morrisdn13,

Yes, I also agree that your problem is not the one with Response.Redirect
or Server.Transfer. Based on my experience, such problem is often caused by
the ASP.NET global client script files got corrupted. Also, there did exist
an bug on asp.net page with smartNavigation when we post back the page it
will turn out a blank page. This problem is fixed thourgh the hotfix of
asp.net and if you've install the latest SP of the .net framework, it
should have this hotfix. However, since the ASP.NET put all the global
scripts files in the
siteroot/aspnet_client folder which can be create or update through the

aspnet_regiis -c command,

I suggest that you(remote that folder under your site first) and try run
the above command to reregister the global scripts again to make sure
you're using the latest script files. After that , you can test your pages
again to see whether it works.

The following kb article also include the kb link which mentioned the FIX
that update the smartnav.js file

HTH. If that still not help, please feel free to post here. We should try
looking for any further resource to help you. GOOD LUCK!

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
M

morrisdn13

Thank you for your help Stephen. I have SP1 for the 1.1 framework installed
and did run apnet_regiis -c succsfully, however this did not resolve the
issue. I'm a little confused about what you meant when you said "(remote
that folder under your site first)". Could you clarify what is meant by
this? Thanks.
 
S

Steven Cheng[MSFT]

Hi Morrisdn13,

Thanks for your followup. I'm sorry to hear that the problem still remains.
Also, the "remote the folder" , it's my type mistake, I just meant that
you can try remove the folder and reregister it through aspnet_regiis -c

Seems a bit strange, would you try creating a new empty site and register
the aspnet_client scripts and test that problem page in a empty project
under that new site? Also, is there any other pages with smartNavigation
suffering the similiar problem? If this still not work, I suggest that you
try contacting the MS PSS for some thorough trouble shooting on your
machine. You can request the assistance according the following kb which
demonstrated the known bug. So, if the problem does be caused by it, you
can get the free support from them.

#http://support.microsoft.com/kb/821156

http://support.microsoft.com/?id=818058

Thanks,


Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

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

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top