473,394 Members | 1,866 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,394 software developers and data experts.

Framework 1.1 ASP.NET smartnavigation problem with Panel

hi, all
it seems that smartnavigation has problem with the hide/show panel in the
aspx page,
I have three panel wih back/next buttons, the first two page works fine, but
at the last
page, all click on the buttons gives an error saying "Undefine" is null or
not an object.

what cauase that? because when I take off smartnagivation on web.config,
everything
works fine.
Kevin
Nov 17 '05 #1
2 5234
Smart navigation is known to have many issues, and is generally not
recommended (at least not for anything with any level of complexity).

"kevin" <ky*@nrcan.gc.ca> wrote in message
news:up**************@TK2MSFTNGP10.phx.gbl...
hi, all
it seems that smartnavigation has problem with the hide/show panel in the
aspx page,
I have three panel wih back/next buttons, the first two page works fine, but at the last
page, all click on the buttons gives an error saying "Undefine" is null or
not an object.

what cauase that? because when I take off smartnagivation on web.config,
everything
works fine.
Kevin

Nov 17 '05 #2

"kevin" <ky*@nrcan.gc.ca> wrote in message
news:up**************@TK2MSFTNGP10.phx.gbl...
hi, all
it seems that smartnavigation has problem with the hide/show panel in the
aspx page,
I have three panel wih back/next buttons, the first two page works fine, but at the last
page, all click on the buttons gives an error saying "Undefine" is null or
not an object.

what cauase that? because when I take off smartnagivation on web.config,
everything
works fine.
Kevin


Unfortunately Smart Navigation is really buggy :(

Instead, you can add this JavaScript to your page (I use it on my projects
and it works fine :) )

The idea is that when client ever clicks something on the page, it's scroll
position is stored to hidden variable by using getPosition() function. If
postback happens, setPosition() is called and it restores the scroll
position.

----------------------------------------------------------------------
Put this in the <head> tags of the page:

<script>
function getPosition()
{
document.forms[0].hid.value=document.body.scrollTop;
}

function setPosition()
{
document.body.scrollTop=document.forms[0].hid.value;
}
</script>

And at the body tag, place:

<body onmousedown="getPosition()" onload="setPosition()">
<form id=WebForm1 method=post runat="server">
<input type="hidden" id="hid" runat="server" >

Nov 17 '05 #3

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

Similar topics

3
by: CS Kirk | last post by:
I am new to Visual C#. My question relates to installation and what version of .NET Framework C# is seeing. I installed Visual C# while I had .NET Framework v1.03. Later, using Windows Update in...
0
by: karim | last post by:
I have a datalist with an itemedittemplate. When I have smartnavigation on, I can't exit out from edit mode with EditItemIndex = -1. When smartnavigation is off, everything works fine. I know...
4
by: Chris Ruegsegger | last post by:
I have a registration type page that asks a series of questions but does so using Panels to display only a couple at a time. I have a Next and Back button on each panel for navigation purposes. ...
3
by: Lewis Edward Moten III | last post by:
I am using smart navigation. I have a form with multiple panels. These panels are displayed and hidden, depending on links that a user may press at the top of the page. One panel has validation...
2
by: SLE | last post by:
A web user control exposes a RadioButtonList (with AutoPostBack = true) called "Question". This control also has an embedded RequiredFieldValidator control. 1. Main ASPX page is populated with...
4
by: Bobby | last post by:
Hi all... I rather confuse using smartnavigation in my web application because if I set the "smartnavigation = true" then If I run my app, then after I post page that page, using event...
5
by: ddt.demos.su | last post by:
I have had some problems with using Samrtnavigation. Using a frame solution where initially a datagrid is displayed, which when an item is selected hides the datagrid panel & presents a panel of...
3
by: Nestus | last post by:
Hi, im developing a solution in ASP.Net, i have a page that i need to use the smartnavigation in true, the problem occurs when i put in the directive @Page SmartNavigation = true my page trhows a...
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...
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.