Framework 1.1 ASP.NET smartnavigation problem with Panel

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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


    kevin Guest

  2. Similar Questions and Discussions

    1. Problem with .net framework
      Hi, I am installing a new application using IIS 6 on a Windows 2003 Standard Server. When I follow the installation procedure, but when I come to...
    2. SOAP Encoding problem with framework 1.1
      In my experience you cannot safely assume you can upgrade your 1.0 servers to 1.1 and have 1.0 clients (or clients built to your 1.0 WSDL) safely...
    3. SmartNavigation Datagrid problem in Windows 2003 Server
      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...
    4. Smartnavigation and EditItemIndex problem
      I have a datalist with an itemedittemplate. When I have smartnavigation on, I can't exit out from edit mode with EditItemIndex = -1. When...
    5. HTMLButton problem with .Net Framework 1.1
      Any news on a solution or workaround? (It's not practical for us to create all our webcontrols in the same project.) thanks Richard
  3. #2

    Default Re: Framework 1.1 ASP.NET smartnavigation problem with Panel

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

    "kevin" <kyu@nrcan.gc.ca> wrote in message
    news:up64jzhVDHA.2012@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
    >
    >

    Marina Guest

  4. #3

    Default Re: Framework 1.1 ASP.NET smartnavigation problem with Panel


    "kevin" <kyu@nrcan.gc.ca> wrote in message
    news:up64jzhVDHA.2012@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" >



    Krissy Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139