473,386 Members | 1,630 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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="WebForm2.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="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.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 1470
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****************@TK2MSFTNGP15.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="WebForm2.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="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.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**************@TK2MSFTNGP12.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****************@TK2MSFTNGP15.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="WebForm2.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="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.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
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...
8
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...
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...
3
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...
0
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...
2
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...
3
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...
2
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.