Site Collection Logical Architecture


Site Collection Logical Architecture

If you have question about using site collection or site for your department please read the article below.

This post is probably not relevant to most people, but I keep running into the same discussions with companies that are setting up SharePoint for the first time or have already set it up and are asking a lot of questions about why their environment is not as flexible as they thought it was going to be. I also seem to get into discussions about this with other SharePoint integrators who don’t feel that this topic is important. Maybe they assume people already know the concept or maybe they don’t understand it themselves.  Read more…

Jerry

Maintaining Page Scroll Position


Maintaining Page Scroll Position

Recently working here we were facing an interesting problem.  We have some complex forms for Careers where user is required to update stuff as his resume.  We found out that we cannot use the Upload Control inside update panel so we have to remove the panel which resulted in post back.  Our update buttons are in the end of the page so after post back it goes back to the top of the page and cannot maintain its position.  One of my team mates found the solution below.   I do not know the source so if it is already posted any where please don’t mind.

Page.MaintainScrollPositionOnPostBack Property

 

This property gets or sets a value indicating whether to return the user to the same position in the client browser after postback. This property replaces the obsolete SmartNavigation property.

When Web pages are posted back to the server, the user is returned to the top of the page. On long Web pages, this means that the user has to scroll the page back to the last position on the page.

When the MaintainScrollPositionOnPostback() property is set to true, the user is instead returned to the last position on the page.

use it in page.aspx

<
asp:Page MaintainScrollPositionOnPostBack="True|False" />

OR in page_Load :

Page.MaintainScrollPositionOnPostBack = true;

 

use it in UserControl.ascx

 

Parent.Page.MaintainScrollPositionOnPostBack = true;

Jerry