473,385 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Set page to focus some certain location after post back

Hi,
I have a web form, after post back to itself, I need to make web page
scroll to some certian location instead of top. We only care IE.
Anybody has some idea how to do it?

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
Nov 19 '05 #1
4 2648
If you want a purist MS position, look at Smart Navigation.

//C#
Page.SmartNavigation=true;

Another option:
http://aspnet.4guysfromrolla.com/art...11704-1.2.aspx
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Hardy Wang" wrote:
Hi,
I have a web form, after post back to itself, I need to make web page
scroll to some certian location instead of top. We only care IE.
Anybody has some idea how to do it?

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 19 '05 #2
Not maintain post back position, but scroll to certain location.

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy
"Cowboy (Gregory A. Beamer) - MVP" <No************@comcast.netNoSpamM> wrote
in message news:0C**********************************@microsof t.com...
If you want a purist MS position, look at Smart Navigation.

//C#
Page.SmartNavigation=true;

Another option:
http://aspnet.4guysfromrolla.com/art...11704-1.2.aspx
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Hardy Wang" wrote:
Hi,
I have a web form, after post back to itself, I need to make web page
scroll to some certian location instead of top. We only care IE.
Anybody has some idea how to do it?

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 19 '05 #3
You will probably need to do this by using Javascript and using anchor
tags.

Place name anchors throughout the page like:

<a name="top">Top</a>
<a name="middle">Middle</a>
<a name="bottom">Bottom</a>

Then you could push Javascript out from the code-behind something like:

<script>
window.navigate('#bottom');
</script>

The page would then scroll to the bottom. Just make sure your
javascript appears last in the page after all the sections of the page
have been named...

Nov 19 '05 #4
If you know the postition you want.

//client side script
function __dascwebLoadScrollPosition( top, left )
{
window.document.body.scrollLeft = top;
window.document.body.scrollTop = left;
}

You can set the scrollLeft and scrollTop of the body. If you don't know the
position, you can do aa7im suggested with anchor tags.

bill
"Hardy Wang" <ha*******@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
Hi,
I have a web form, after post back to itself, I need to make web page
scroll to some certian location instead of top. We only care IE.
Anybody has some idea how to do it?

--
WWW: http://hardywang.1accesshost.com
ICQ: 3359839
yours Hardy

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Ben | last post by:
The page below isn't picking up details or location. What have I missed? Thanks in advance, Ben ____________________________________________ <?PHP
4
by: dmiller23462 | last post by:
I'm trying to create a submission page for users to request PC/LAN Access....If they select "Yes" in the field asking about if they need Non Standard Software, I want several other HTML fields to...
2
by: Charles | last post by:
Hello, I have a very full .aspx page in c# that I need to use another aspx page as a pop ups to help me populate? Response.redirect doesn't work what does? Also, I need to get the answer from the...
2
by: James | last post by:
I've been to websites where if I navigate off a form, trying to get back to it by hitting the back button gives me a page which says "Warning, page has expired". It doesn't display the page. I've...
9
by: tshad | last post by:
This is from my previous post, but a different issue. I have the following Javascript routine that opens a popup page, but doesn't seem to work if called from an asp.net button. It seems to work...
1
by: Oenone | last post by:
We have a little piece of JavaScript in one of our client's application which automatically sets the input focus to the first control on the HTML form. This works very nicely, except for in one...
1
by: colleen1980 | last post by:
Hi: Can any one please tell me that how to i pass the two textbox values in the new page. If i use the form action in the popup window page then the new page is open in the same popup window as i...
1
by: kang jia | last post by:
hi when user entered particulars in signuppage and click" signup" button, i will direct them to do_signup.php. if say the NRIC is dupicate in datebase, i will redirect them back to signup page...
12
by: jim.richardson | last post by:
Hi all, I'd like a page to be excluded from the back button history, that is, when a user hits their browser's back button, it never backs into this particular page. Can anybody please tell...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.