tags:

views:

221

answers:

1

I have a mvc viewpage where I have detailed form for users to fill. In the form there are 2-3 dropdowns. On selection of option in those dropdown the page is posted back. Now during these postbacks i want to maintain the vertical scroll position for the page. To achieve this I used Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" MaintainScrollPositionOnPostback="true" But somehow this is not working. Am I missing something, plz help. Note: I have used simple return View() in my action method.

+1  A: 

Have a look at this question

Stuart Dunkeld