Showing posts with label position. Show all posts
Showing posts with label position. Show all posts

Wednesday, March 28, 2012

Change the position of content in a web page

Hi

Can any one please help me out by telling me where to search for the feature that google has used to change the position of the conetent in a page by simply dragging and dropping the content. This is the linkhttp://www.google.co.in/ig?hl=en. Or waht features of .Net can be used to achieve this.

u can use MS-AJAX...its very simple.....use the MS-AJAX control toolkit

http://ajax.asp.net/ajaxtoolkit/DragPanel/DragPanel.aspx

change scroll position on partial-page update?

I'm wanting to be able to change the scroll position to the bottom (or to an anchor) on an AJAX partial-page update. Any ideas? Can I fire a client-side javascript function after the update? Do I have to turn off MaintainScrollPositionOnPostback for the page?

Seehttp://forums.asp.net/t/1157991.aspx

Also, if you have specific scrolling logic when the UpdatePanel comes back, you can add it to EndRequest method in the following code (e.g. scrollTo)...

<script language="javascript" type="text/javascript"> var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_initializeRequest(InitializeRequest); prm.add_endRequest(EndRequest); function InitializeRequest(sender, args) { ... } function EndRequest(sender, args) { ... } </script>

-Damien


Thanks... that's what I needed!

Brad


http://aspnet.4guysfromrolla.com/articles/111704-1.aspx

<pages smartNavigation="true"MaintainScrollPositionOnPostback="true"/>

Try this also

<script type="text/javascript"
var prm = Sys.WebForms.PageRequestManager.getInstance();

prm.add_beginRequest(beginRequest);

function beginRequest()
{
prm._scrollPosition = null;
}

</script>

Lety me know if this helpful to you