Click here to Skip to main content
15,887,214 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionASP.NET C# Dynamically add my selected item from dropdown to below with div tags Pin
Member 1034105324-Nov-14 0:02
Member 1034105324-Nov-14 0:02 
AnswerRe: ASP.NET C# Dynamically add my selected item from dropdown to below with div tags Pin
2374126-Nov-14 18:39
2374126-Nov-14 18:39 
QuestionExcel like filter Grid using ASP.Net MVC Pin
indian14323-Nov-14 10:27
indian14323-Nov-14 10:27 
AnswerRe: Excel like filter Grid using ASP.Net MVC Pin
Anurag Gandhi30-Nov-14 22:47
professionalAnurag Gandhi30-Nov-14 22:47 
GeneralRe: Excel like filter Grid using ASP.Net MVC Pin
indian1434-Dec-14 11:17
indian1434-Dec-14 11:17 
GeneralRe: Excel like filter Grid using ASP.Net MVC Pin
Anurag Gandhi4-Dec-14 18:04
professionalAnurag Gandhi4-Dec-14 18:04 
QuestionMaintain scroll position Pin
BobbyStrain21-Nov-14 14:07
BobbyStrain21-Nov-14 14:07 
AnswerRe: Maintain scroll position Pin
jkirkerx25-Nov-14 12:52
professionaljkirkerx25-Nov-14 12:52 
Page.MaintainScrollPostion = true

I stopped using that directive years ago. I think it worked years ago back in the early 2000's, but I think over the years it just faded away. I'm not sure about the mechanics of that directive, whether it just injects javascript on the page for the scroll position, I assume it does.

There are many posts on the subject, with thanks that fixed it and still not working, it worked but now it doesn't work. You have to use IE, worked in Chrome, but not Firefox.

I use the code behind example on line 1, with update panels, and all my pages maintain the the y axis scroll position during partial post back to the server. I've removed that line from several pages, and they still maintain the position.

I just spent about 20 minutes going through my programs and they all maintain scroll position. The programs with update panels.

Sorry I'm not much help here. I did some searching my seal using Google, and came up with all kinds of things here. Look into the Partial Postback on the update panel. The vertical size of the update panel, and the page source code, the HTML in your browser to see if there is any javascript associated with the directive.

I think the update panel is evil, and I replaced it with jquery and ajax calls to a web service, so scrollback position is not an issue for me anymore, over the last 5 years. Cost more to make, but provides a better user experience.


The directive

http://weblogs.asp.net/hosamkamel/maintain-scroll-position-after-postbacks-in-asp-net-2-0[^]
http://stackoverflow.com/questions/7394852/how-to-maintain-page-scroll-position-after-a-page-postback-in-asp-net[^]

Try this one
http://stackoverflow.com/questions/23836917/maintaining-page-scroll-position-after-updatepanel-partial-postback[^]
GeneralRe: Maintain scroll position Pin
BobbyStrain26-Nov-14 17:03
BobbyStrain26-Nov-14 17:03 
GeneralRe: Maintain scroll position Pin
jkirkerx27-Nov-14 11:39
professionaljkirkerx27-Nov-14 11:39 
GeneralRe: Maintain scroll position Pin
BobbyStrain29-Nov-14 11:44
BobbyStrain29-Nov-14 11:44 
GeneralRe: Maintain scroll position Pin
jkirkerx29-Nov-14 12:13
professionaljkirkerx29-Nov-14 12:13 
GeneralRe: Maintain scroll position Pin
BobbyStrain30-Nov-14 14:38
BobbyStrain30-Nov-14 14:38 
GeneralRe: Maintain scroll position Pin
BobbyStrain8-Dec-14 12:19
BobbyStrain8-Dec-14 12:19 
GeneralRe: Maintain scroll position Pin
jkirkerx8-Dec-14 12:47
professionaljkirkerx8-Dec-14 12:47 
Questionconnection string Pin
dinusahu21-Nov-14 6:34
dinusahu21-Nov-14 6:34 
AnswerRe: connection string Pin
jkirkerx21-Nov-14 8:37
professionaljkirkerx21-Nov-14 8:37 
GeneralRe: connection string Pin
dinusahu21-Nov-14 18:51
dinusahu21-Nov-14 18:51 
GeneralRe: connection string Pin
jkirkerx21-Nov-14 18:58
professionaljkirkerx21-Nov-14 18:58 
GeneralRe: connection string Pin
dinusahu21-Nov-14 22:38
dinusahu21-Nov-14 22:38 
GeneralRe: connection string Pin
jkirkerx22-Nov-14 8:32
professionaljkirkerx22-Nov-14 8:32 
QuestionDatagrid vs Generating table and rows Pin
neualex21-Nov-14 2:30
neualex21-Nov-14 2:30 
QuestionASP.net Pin
nikky13.batra@gmail.com20-Nov-14 19:21
nikky13.batra@gmail.com20-Nov-14 19:21 
SuggestionRe: ASP.net Pin
ZurdoDev21-Nov-14 2:23
professionalZurdoDev21-Nov-14 2:23 
Questionsome questions Pin
Member 1124450118-Nov-14 8:27
Member 1124450118-Nov-14 8:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.