Framework 1.1 ASP.NET smartnavigation problem with Panel

Discussion in 'ASP .Net' started by kevin, Jul 29, 2003.

  1. kevin

    kevin Guest

    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,
    works fine.

    kevin, Jul 29, 2003
    1. Advertisements

  2. kevin

    Marina Guest

    Smart navigation is known to have many issues, and is generally not
    recommended (at least not for anything with any level of complexity).
    Marina, Jul 29, 2003
    1. Advertisements

  3. kevin

    Krissy Guest

    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

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

    function getPosition()

    function setPosition()

    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" >
    Krissy, Jul 30, 2003
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.