Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > View scrolls on post back

Reply
Thread Tools

View scrolls on post back

 
 
AAaron123
Guest
Posts: n/a
 
      08-07-2008
When the page is redrawn after a postback the original scrolled position is
lost and the page is shown from the top.

Is it possible to cause the page to retain the original scroll position?

I'd like the bottom causing the postback to remain in the original position


thanks


 
Reply With Quote
 
 
 
 
Munna
Guest
Posts: n/a
 
      08-07-2008
Hi,

Set your page's attribute to MaintainScrollPositionOnPostback="true"

example

<%@ Page Language="C#" AutoEventWireup="true"
Inherits="TME.UI.Default" MasterPageFile="~/MasterPages/Site2.Master"
Codebehind="Default.aspx.cs" MaintainScrollPositionOnPostback="true"
%>


Best of luck

-------
Munna

www.munna.shatkotha.com/blog
www.munna.shatkotha.com
www.shatkotha.com
 
Reply With Quote
 
 
 
 
AAaron123
Guest
Posts: n/a
 
      08-07-2008
That was a lot easier then I expected.

Thanks

"Munna" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Set your page's attribute to MaintainScrollPositionOnPostback="true"
>
> example
>
> <%@ Page Language="C#" AutoEventWireup="true"
> Inherits="TME.UI.Default" MasterPageFile="~/MasterPages/Site2.Master"
> Codebehind="Default.aspx.cs" MaintainScrollPositionOnPostback="true"
> %>
>
>
> Best of luck
>
> -------
> Munna
>
> www.munna.shatkotha.com/blog
> www.munna.shatkotha.com
> www.shatkotha.com



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does a dynamic control load post back data across post back?? =?Utf-8?B?Z29yaWxsYQ==?= ASP .Net 1 05-25-2007 05:02 AM
scrolls scrolls scrolls scrolls scrolls ............... =?Utf-8?B?ZG90bmV0a3VtYXI=?= ASP .Net 0 08-04-2005 08:55 AM
Table that scrolls if too long BUT first row is static? Noozer HTML 1 06-16-2005 07:11 AM
Image scrolls up instead of down. geothermal Computer Support 4 01-29-2005 07:23 AM
Can u change the way the screen scrolls??? Big Monkey Computer Support 8 04-24-2004 08:28 PM



Advertisments