An easy question. AutoPostBack

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • begoddendave
    New Member
    • Mar 2007
    • 12

    An easy question. AutoPostBack

    Hi

    I have a small piece of code that uses the AutoPostBack feature along side an OnSelectedIndex Changed. When a person clicks a radio button, the page sends the response and then 'does something (depending on what was selected)' - This works fine

    However, every time one of these buttons is clicked, the view goes to the top of the page and the user then has to scroll back down to where they were. Is there a way around this? I have tried to use...

    <configuratio n>
    <system.web>
    <pages smartNavigation ="true"/>
    </system.web>
    </configuration>

    ...in the web.config file but this doesn't seem to work.

    Thank you

    Dave
  • nityaprashant
    New Member
    • Feb 2008
    • 19

    #2
    write function in javascript
    set ur webform according to ur choice with the help of x & y co-ordinates


    function ResetScroll()

    {

    window.scrollTo (0,0);

    }

    Regards,
    Nitya

    Comment

    Working...