not really an Asp.Net issue but you will want to set an HREF with a name so it can be referenced, same as setting one within the page and navigating around.
Have you read the book? - ASP.Net 3.5 CMS Development (now on Kindle)
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
Marked as answer by Allen Li - MSFT on May 07, 2012 03:35 AM
siraero
Member
419 Points
604 Posts
on Window.Open can u then get to the bottom of the page
Apr 30, 2012 05:57 PM|LINK
Hi
I have this that close a popup and open a new page in the same window.
Page.ClientScript.RegisterStartupScript(Me.GetType(), "close", "parent.parent.window.open('default.aspx', '_self');parent.parent.GB_hide();", True)How can i start from the bottom of this new window, and not the top !?
I have tryed
Page.ClientScript.RegisterStartupScript(Me.GetType(), "close", "parent.parent.window.open('default.aspx#bottom', '_self');parent.parent.GB_hide();", True)But that dont work.
Curt_C
All-Star
66014 Points
7639 Posts
Moderator
Re: on Window.Open can u then get to the bottom of the page
Apr 30, 2012 07:02 PM|LINK
not really an Asp.Net issue but you will want to set an HREF with a name so it can be referenced, same as setting one within the page and navigating around.
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
MahadPK
Participant
778 Points
225 Posts
Re: on Window.Open can u then get to the bottom of the page
Apr 30, 2012 08:36 PM|LINK
Visit These URLs you will Solve your Problem by Javascript Code Scrollto 0,9999 etc
Check it out.
http://www.tek-tips.com/viewthread.cfm?qid=645820
and
Consider using jQuery's scrollTo plugin which actually manipulates scroll position of the appropriate container for you.
To demonstrate with your own example:
Hosted Demos view them Siraero
With jQuery scrollTo
Without jQuery scrollTo
Ruchira
All-Star
42888 Points
7020 Posts
MVP
Re: on Window.Open can u then get to the bottom of the page
May 01, 2012 06:52 AM|LINK
Hello,
You can set it on the default.aspx page
window.onload = function scroll(){ window.scrollTo(0, document.body.clientHeight); }Add the above script to head section of default.aspx page.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.