473,464 Members | 1,476 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Page does not return with smartnavigation on

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?
Nov 19 '05 #1
7 1783
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

"morrisdn13" wrote:
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?

Nov 19 '05 #2
HI,

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

Cheers,

Jerome. M

"morrisdn13" wrote:
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?

Nov 19 '05 #3
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.

"DotNetJerome" <reachjerome@_yahoo.com-remove-the-underscore-after@> wrote
in message news:C6**********************************@microsof t.com...
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

"morrisdn13" wrote:
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?

Nov 19 '05 #4
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/

Nov 19 '05 #5
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.)


Nov 19 '05 #6
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.

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:a0**************@TK2MSFTNGXA02.phx.gbl...
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.)

Nov 19 '05 #7
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.)

Nov 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Heinrich Moser | last post by:
SmartNavigation is supposed to keep the page's last state in the browser history. As far as I can tell, it doesn't do that if you use Response.Redirect to change to another page. Steps to...
0
by: kolos | last post by:
Hi! I had to face with a strange problem. A html page loads an aspx page (written in C#, but I think it does not matter in this case) into one of the frames on the page. I tried to use the...
2
by: Grober | last post by:
Steve C. Orr was kind enough to help find SmartNavigation, and it worked fine when I had my aspx page locally on my computer. However, when I publish it, the problem is still the same: when the...
2
by: Patrick | last post by:
i have the following .aspx file defined: ..... other tags here ... <asp:TableCell><asp:button id="AddButton" Runat="server" Text="Add New Vessel..."</asp:button></asp:TableCell> ..... other tags...
3
by: Charlie | last post by:
Hi: After posting back, I would like to return to a specific area of page. For example, when my "add to cart" handler posts back, I would like returned page to scroll to where button was...
2
by: Mike Fellows | last post by:
i have a large aspx page that has numerous postbacks on it everytime a postback is implemented i return to the top of the aspx page! how can i stop this happening? thanks in advance ...
1
by: Dan Sikorsky | last post by:
I'm using SmartNavigation and need to automatically scroll to the top of the page when the ValidationSummary control catches errors and displays them, so that the user can see the errors without...
4
by: Lenny Shprekher | last post by:
I am using regular server site ASP.NET button to execute function. Works fine, issue is that when I call page-refresh on IE after click I done it is calling same event again. Could anybody suggest...
7
by: Kewlpack | last post by:
Okay - this is stumping me. I've used .Net since 1.0 release and never had this trouble before... In one of my new projects, if I enable the SmartNavigation="True" in the Page...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.