473,568 Members | 2,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SmartNavigation doesn't work?

I'm trying to track down why SmartNavigation isn't working on a site.
I have created a brand new form, set SmartNavigation =true and added some
text and a button. There is no code in the codebehind file beyond what was
created by visual studio when creating a new web page.
When I click on the button I'm sent back to the top of the page.
What am I missing?

<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="Web Form2.aspx.vb"
Inherits="CKKDB .WebForm2" smartNavigation ="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm2 </title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<P>top</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button></P>
</form>
</body>
</HTML>

Nov 18 '05 #1
2 1478
Works for me in IE, are you using FireFox? smartnav is ie-only.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"jahyen" <jahyen@> wrote in message
news:uF******** ********@TK2MSF TNGP15.phx.gbl. ..
I'm trying to track down why SmartNavigation isn't working on a site.
I have created a brand new form, set SmartNavigation =true and added some
text and a button. There is no code in the codebehind file beyond what was created by visual studio when creating a new web page.
When I click on the button I'm sent back to the top of the page.
What am I missing?

<%@ Page Language="vb" AutoEventWireup ="false" Codebehind="Web Form2.aspx.vb" Inherits="CKKDB .WebForm2" smartNavigation ="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm2 </title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<P>top</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>
<asp:Button id="Button1" runat="server" Text="Button"></asp:Button></P> </form>
</body>
</HTML>

Nov 18 '05 #2
Checked that already, I'm running IE6 for testing.

I just figured it out, though.

SmartNavigation depends on the aspnet_client directory being accessible from
the root of the virtual server.
The site was running from a new virtual server that didn't have the
aspnet_client directory set up. After copying the directory to the new
virtual server the client could load the required files from
/aspnet_client/system_web/1_1_4322/SmartNav.js and SmartNav.htm.

J
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:eX******** ******@TK2MSFTN GP12.phx.gbl...
Works for me in IE, are you using FireFox? smartnav is ie-only.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/
"jahyen" <jahyen@> wrote in message
news:uF******** ********@TK2MSF TNGP15.phx.gbl. ..
I'm trying to track down why SmartNavigation isn't working on a site.
I have created a brand new form, set SmartNavigation =true and added some
text and a button. There is no code in the codebehind file beyond what

was
created by visual studio when creating a new web page.
When I click on the button I'm sent back to the top of the page.
What am I missing?

<%@ Page Language="vb" AutoEventWireup ="false"

Codebehind="Web Form2.aspx.vb"
Inherits="CKKDB .WebForm2" smartNavigation ="True"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm2 </title>
<meta name="GENERATOR " content="Micros oft Visual Studio .NET 7.1">
<meta name="CODE_LANG UAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaul tClientScript" content="JavaSc ript">
<meta name="vs_target Schema"
content="http://schemas.microso ft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<P>top</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>
<asp:Button id="Button1" runat="server"

Text="Button"></asp:Button></P>
</form>
</body>
</HTML>


Nov 18 '05 #3

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

Similar topics

0
1081
by: Ryan Breakspear | last post by:
Hi All, I have a website with SmartNavigation set in the Web.Config (I have read quite a lot on the merits/pitfalls of SmartNavigation). Many of the website pages have Datagrids with selectable rows. The first time a user selects a row, the page scrolls to the top, but from then on Smart Navigation seems to work fine, and the page doesn't...
8
1923
by: Inigo Jimenez | last post by:
I have an ASP .net web application installed in a Windows 2003 server. This web application has a webform that has a Datagrid. This Datagrid is filled with the data of a SQL table. I have a button that inserts a new row in the SQL table and then refresh the datagrid.
2
999
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 page is reloaded after a dropdownlist's contents has been modified I have to scroll down to where I was again. What could be the difference? Regards...
3
1172
by: Carl Mercier | last post by:
Hi, I have a long form that post back to itself at different places. At the very end, I have a button called "Next" that post back to itself again but some panels are hidden and some others are shown to simulate a "Next Page" effect. Since I have many controls that require post back, I need SmartNavigation to be turned on. However,...
0
962
by: David Hearn | last post by:
I am trying to enable SmartNavigation on a page that resides in a frame. When I set it to True, it doesn't work. I have tried setting it both in the page directive and also in the code behind using me.smartnavigation = True. Neither one works. I need to keep the page from jumping back to the top when a user clicks on one of the buttons on the...
2
1158
by: Karen A Hodge | last post by:
I like the idea of SmartNavigation because it does reduce screen flicker. I just doesn't work for me in production. Whenever I set SmartNavigation to true and I have a command button that does a redirection to another web page, all I see is a blank screen and the word "Done" in the status bar. What's up with that?
3
1825
by: Steve Peterson | last post by:
Hi I have a rather lengthy webform I'm working on in which I need the user to be able to scroll to the same place between postbacks. I tried turning on SmartNavigation and it seemed to work fine - the page was was scrolled to the same place between postbacks. However, iexplorer.exe will throw an error if I close the browser at this page....
2
2005
by: Wysiwyg | last post by:
Has anyone found a reasonable way to emulate smartnavigation functionality for any browser? I'd really like to avoid creating history entries when posting back to the same page. SmartNavigation takes care of the annoying problem caused by creating a new history entry when a page posts to itself. Only Internet Explorer will support this...
3
1170
by: Rudy Ko | last post by:
Hi, I have a long site with SmartNavigation on. It works on my developing machine. When I published to server, it doesn't work on any machine. What do I miss? Anybody know? Thank you for any kind of help. -Rudy
0
7693
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7916
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7660
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5217
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3651
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2101
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 we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.