Web Forms :: Remember Page Position On Postback?
Aug 23, 2010
I want the page when refreshed to remember the position that the user was at on the page, for instance if they are scrolled half way down the page when the page posts back can it return to that position on the page?
View 4 Replies
Similar Messages:
May 7, 2015
I am using GeoMap in my website, and GeoMap is little below in Web Page.I am using filters in GeoMap, i.e., when user selects any station and clicks on "button", all the locations related to selection shows in GeoMap. But everytime when I filter and click on button, page loads and scroll upward then again to see the filteration result in Geo Map, I had to scroll down my page.I want that when I filter any station and click on button, page should stick to that GeoMap section. It should not go upward until user scrolls the page.For this I tried using "Update panel" but then GeoMap javascript is not working.
View 1 Replies
Mar 11, 2010
I have some collapse able anhcor link tags on a page that reveal some text when clicked on i.e.: [+] Topic This is all done in javascript client side. I would like to maintain the users scroll position on the page when these links are clicked on. They dont cause a postback as iv mentioned above its client side javascript.
View 6 Replies
Oct 16, 2010
i am using asp.net 4.0 iis 7.5 microsoft visual studio 2010
what i want is keep whole page (browser) scroll position (not a div or panel) when asynchronous postback happened (update panel) how can i do this actually i had a function which can keep div scroll bar position after postback like this
<script type="text/javascript">
var xPos, yPos;
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_beginRequest(BeginRequestHandler);
prm.add_endRequest(EndRequestHandler);
function BeginRequestHandler(sender, args) {
xPos = document.getElementById('Main').scrollLeft;
yPos = document.getElementById('Main').scrollTop;
}
function EndRequestHandler(sender, args) {
document.getElementById('Main').scrollLeft = xPos;
document.getElementById('Main').scrollTop = yPos;
}
</script>
bu i could not find browser scroll bar id to get its values to get with document.getElementById
View 1 Replies
Dec 16, 2010
I'm trying to make a div tag retain its state through postback. here's my code
[Code]....
What happensis this: If you click the "toggle" button div tag id sub3 will display. If you click different button div tag blah will display. If you click refresh then both the toggle and different div tags disappear.
What I want to happen is to have the div tags to be in the state they were before the user clicks on the refresh button.The refresh button can do anything to make this happen but I need the div tags to save their state through postback.
View 5 Replies
Nov 23, 2010
I have a web page in which i have some validation after textbox lostfocus but i want that If Error occurs then text box changes their position and as soon as user corret that error text box set it on its original position how can i do it
View 2 Replies
Feb 1, 2010
I have a page that uses AJAX updatepanels. On this page, we have some radio buttons with Autopostback set to true. The problem is that after the postback, the control was losing focus so that when the user would hit tab, control would be restored to the first control on the page and not the drop-down which fired the event. As a fix, I wrote some set focus code in the radio button's oncheckchanged event. This seems to have fixed the problem with the focus. The problem I have is that the browser loses its scroll position every time I click on one of these radiobuttons. Is there a way to maintain scroll position? Maybe there is another way to resolve my original problem of setting focus that will prevent this from happening.
View 6 Replies
Jul 23, 2010
How can we retain Panel scroll position on postback without using any cookies.
View 6 Replies
Oct 28, 2010
Is there anyway to define the screen position after a postback?
Specificaly i'm referring to the vertical scroll position. Some of my controls are set to AutoPostback = True. Depending on their selected value it then reveals a hidden ASP.Net panel and some more questions.
Problem is that with each post back the page refreshes at the top and i have to scroll back down to my question. I can use the .focus() control, that's fine, but it doesn't work as perfectly as i'd like. Is there any way of defining how many lines or pixels the screen is already scrolled to upon postback?
View 4 Replies
Feb 21, 2014
[URL]
I have got the gridview to populate from my own datatable and there are quite a few results in the table. As a result I have a scroll bar on my gridview.
If there is only a few results the gridview works perfectly, however; When I select a row further down in the scroll it selects and highlights but refreshes the view to the top of the gridview.
View 1 Replies
Feb 28, 2014
I have implemented the "slimScroll" in a div. Prior to this implementation, I was using the asp.net inherent scrolling and was able to use the Maintain Scroll PositionOnPostback="true" at the Page level and that worked well; but now, this no longer works.
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="SBN_Messages.aspx.vb"
Inherits="ShopBuyName_Test_Site.SBN_Messages" MaintainScrollPositionOnPostback="true" %>
<%@ Register Assembly="obout_Interface" Namespace="Obout.Interface" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
[code]....
View 1 Replies
Jan 12, 2010
How do i Maintain ListBox scrollbar position on postback ?
further details*
Listbox is populated from database size can change.
Scrollbar is vertical.
View 1 Replies
Mar 30, 2010
ScrollBar position resets on postback.Is there anyway to maintain position ?I am adding UserControl(s) dynmically to the page, therefore I want to maintian positon (always maintain position at the end)Following is my .aspx file (Just to show where is the asp:panel and User controls)
[Code]...
View 5 Replies
Mar 11, 2010
I have an asp.net listbox with 15 rows and auto postback when the selected item is changed. This works as expected but, when the form is re-loaded, IE scrolls the list so that the last selected item is now the top visible item in the list. This produces a confusing/jumpy effect for the users and makes the listbox more difficult to use than it needs to be.
Is there any way to get the list scroll position to stay as it was before the postback? i.e, if I select an item from the middle of the listbox, the listbox is scrolled to the same point after postback.
I am using .Net 3.5 but no AJAX.
View 6 Replies
Nov 4, 2010
I have form where I am displaying States and related cities. it is displaying properly. I also used MaintainScrollPositionOnPostBack="true" too. But the problem is when I select some state then my scroller goes top of the position first and loading some images. [it shows me on status bar] and after this it it maintained the position. During image loading it takes 4 - 5 seconds and it's too much for me.
View 2 Replies
Feb 8, 2013
I tried some methods to maintain scroll position on postback but none worked they are
1) In page declaration MaintainScrollPositionOnPostback="true"
2) In Code behind Page.MaintainScrollPositionOnPostBack = true
3)In web.config file in <system.web> section <pages maintainScrollPositionOnPostBack="true" />
I am not using any updatepanel.
View 1 Replies
Aug 18, 2015
what is the way to code for Remember Me.
when we do login in any website the there a optional checkbox about remember me for future login.
View 1 Replies
Sep 10, 2010
I have a simple question. I need to keep my position af postback in a scrollbar, where a panel consists of 20 equal user controls. I have attached the code below for the simple form and for the user control.
I have added MaintainScrollPositionOnPostback="true" in the webform, but still the position moves back to the top position of the panel after postback.
View 31 Replies
Feb 19, 2011
I have some problems with maintaining scroll position after postback. First time I experienced the problem was when I (believe) added Combobox control from AJAX control Toolkit and/or UpdatePanel from AJAX Extensions. The problem is when I do the postback on the page the page is loaded at the top and not where I did the postback. Actually, this wouldn't be a problem if it isn't happening on a very large form. I have already tried using MaintainScrollPositionOnPostback="true", but it wasn't helpful at all. I can provide the code if needed, but I don't think it would be of any use because I have comboboxes inside update panels which are rebinded on a button click.
View 1 Replies
Jan 25, 2010
I have a multiple page gridview and edit link on each row.
View 8 Replies
Jan 11, 2010
I have a panel inside an update panel. The panel has a scrollbar. When a control inside the panel is clicked, the scrollbar resets, scrolling the panel back to the top. Is there a simple way to preserve the scrolling position of a panel inside and update panel when a postback happens from inside that panel?
View 5 Replies
Feb 26, 2010
I have a web page that regularly refreshes on post back, and all of this works fine. However, a user has made enhance the page, which I need with:
1) There are 3 asp.panels on the page, which are scrollable vertically. When the page refreshes, the scroll position returns to the top. The enhancement is to maintain the position of where ever the scrollbar is on postback. How do I keep the scrollbar position on post back?
2) Within each of the panels are dynamically added web controls. These web controls contain gridviews, which are themselves contained inside div tags. These div tags can be hiddened and made visible by an image button. This hidden and visible state is actioned by some javascript on the page. Again, the user has asked how it is possible to maintain the state of these div tags on post back, i.e. those that are closed and those that are visible. Currently, the state is on postback for all the div tags to be visible. How do I maintain the state of the visibility of a div tag during postback?
View 4 Replies
Mar 8, 2010
VWD 2008 Express. Visual Basic.
I have a gridview control within a panel control. The gridview can contain up to 128 rows. The panel is 300px high and has a vertical scroll bar that allows me to scroll to the row I want to see or edit in my gridview. When I click the "Edit" button on an item within my gridview, the page posts back and returns to panel scrolled all the way back to the top. I have to then scroll back down to get to the item I want to edit in my gridview (which has correctly been placed in edit mode). How can I make the panel return to its postion (or stay in its postion) after a postback without me having to manually scroll back down?
View 8 Replies
Sep 5, 2010
In login control of asp.net there is a remember me checkbox. What is the functionality of this checkbox? What it does basically? Is there any way to put space between checkbox and its associated label?
I saw Windows Live login control has an extra checkbox Remember my password? How can we achieve this feature in our custom login control? I have read many tutorials but I can not able to solve my queries.
View 6 Replies
Mar 13, 2011
I have a gridview that putted in ASP.NET Panel. both of panel and Gridview are in an UpdatePanel. there is a column in gridview that Causes Partial PostBacks. i want to Maintain Panel Scroll position on those postbacks.
View 1 Replies