Home > Not Working > Maintainscrollpositiononpostback Chrome

Maintainscrollpositiononpostback Chrome

Contents

I haven't tested it myself, but it looks like it worked for the original poster of that thread. In Chrome it's even more problematic than in FireFox as in Chrome the left click instantly causes the page to jump. Not the answer you're looking for? But it doesn't work with IE8 and the latest version of Firefox. this contact form

Page.MaintainScrollPositionOnPostBack = true; Option 3: Hybrid You can combine the two options above. I don't have the latest IE, so I can't comment. papu1234519-Jun-14 3:10 papu1234519-Jun-14 3:10 hi vbwyrde Try fallowing thing 1-IN PAGE directive just add MaintainScrollPositionOnPostback=true like below <%@ Page Title="" Language="C#" MasterPageFile="~/x.Master" MaintainScrollPositionOnPostback="true" AutoEventWireup="true" CodeBehind="demo.aspx.cs" Inherits="x.demo" %> 2-Use update panel if Sign In·ViewThread·Permalink Safari1Plus was reported as error Michael Freidgeim14-Jan-16 13:52 Michael Freidgeim14-Jan-16 13:52 I've added in new .browser file references browser refID="Chrome" and refID="Mozilla" But it didn't help Michael Freidgeim.

Maintainscrollpositiononpostback Chrome

I am shocked. Sign In·ViewThread·Permalink Thanks Member 1140813429-Apr-15 21:52 Member 1140813429-Apr-15 21:52 Thank u so much dude it works Sign In·ViewThread·Permalink Forum for tip/trick: Maintain Scroll Position Problem fix for Chrome. This is working fine Sign In·ViewThread·Permalink My vote of 5 adityapanday14-May-12 20:49 adityapanday14-May-12 20:49 its also work on firefox, opera, chrome Sign In·ViewThread·Permalink Last Visit: 31-Dec-99 19:00 And, I coded your suggested fix to set it in the config file and on each page.

Pick Randomly Between -1 or 1 Citing work with a publication year in the future Code ladder, Cops Would the members of an online imageboard (or any community) be able to So I am not hopeful that this will work for me either. Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI Maintainscrollpositiononpostback= True Not Working Suresh Kumar ‹ Previous Thread|Next Thread › This site is managed for Microsoft by Neudesic, LLC. | © 2016 Microsoft.

Try to write your own javascript to maintain the position on the postback Please check the following link: http://blogs.x2line.com/al/articles/156.aspx http://justgeeks.blogspot.com/2009/04/keep-scroll-position-on-aspnet-page.html http://forums.asp.net/p/948134/1149902.aspx#1149902 http://forums.asp.net/p/1177338/1990771.aspx http://forums.asp.net/t/1089469.aspx/2/10 http://forums.asp.net/t/1089469.aspx Please mark the replies as answers if Maintainscrollpositiononpostback Example this.MaintainScrollPositionOnPostBack = true; This works perfectely fine on all IE browsers but does not work when you are using Chrome. If we post something here that you find helpful for your job or hobby, that’s great. Source Hot Network Questions Pick Randomly Between -1 or 1 Does the Rothschild family own most central banks?

document.body.parentElement.scrollTop : 0; } } if (scrollY > 0) { var input = document.getElementById("scrollY"); if (input == null) { input = document.createElement("input"); input.setAttribute("type", "hidden"); Maintainscrollpositiononpostback Javascript RELATED POSTS Entity Framework Code-First: how to generate an auto-increment ID field HTTP Error 403 – Forbidden after ASP.NET MVC Web Application deploy on IIS 7 ASP.NET – Insert HTML code The setting in the web.config becomes the default. Browse other questions tagged asp.net vb.net cross-browser master-pages webusercontrols or ask your own question.

Maintainscrollpositiononpostback Example

Should I trust a website which breaks when I use a complex password? http://www.aspsnippets.com/Articles/ASPNet-MaintainScrollPositionOnPostback-not-working-in-Firefox-and-Chrome.aspx You will be notified via email when the author replies to your comment. Maintainscrollpositiononpostback Chrome Reply mikefulton None 0 Points 1 Post Re: MaintainScrollPositionOnPostback not working with Web User Controls Aug 06, 2013 04:34 AM|mikefulton|LINK Sorry to necro an old post but I'm dealing with this Maintainscrollpositiononpostback Not Working With Master Page template.

See ASP.NET Ajax CDN Terms of Use – http://www.asp.net/ajaxlibrary/CDN.ashx. ]]> Just geeks Wednesday, April 29, 2009 Keep scroll position weblink more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Brent,Thanks, I'll try your suggestion. I have been searching for a fix to maintain scroll position on postback. Maintainscrollpositiononpostback Not Working With Updatepanel

Related 1maintainScrollPositionOnPostback=“true” does not work globally after setting in web.config ,but works in page level,what should I do?33window.focus() not working in Google Chrome5Error: “The file '/MasterPages/MainMaster.master' does not exist.” (Yes, this What does the actual path of air within a turbojet engine look like? P.IVA 13232371008, REA RM - 1431325 This website uses cookies to improve your experience. navigate here In the “Add New Item” window, select “Browser File” and click “Add”.

MaintainScrollPositionOnPostback="true" For Ex: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" MaintainScrollPositionOnPostback="true" %> Thanks & Regards, A. Maintainscrollpositiononpostback Not Working In Firefox Here's a simple script based on the popular jQuery framework who does the trick in a cross-browser compatible way: For WinForms: