473,395 Members | 1,679 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,395 software developers and data experts.

How do work smartnavigation on redirect?

I know that smartnavigation works on formpost.
But I can to do smartnavigation works when I redirect to same page than post
the page.

Example:

Actual page is "mainpage.aspx?param=xx"
In a button click I Redirect to "mainpage.aspx?param=yy" but I want that
scroll stay on position of button.

Is possible? Who/Where save the position before formPost?
Nov 19 '05 #1
1 1285
Rafael:
You can always use javascript to do this via window.ScrollTo()

mainpage.aspx?param=yy&toBottom=true
Sub Page_Load
if not Request.Querystring("toBottom") is nothing then
Page.RegisterStartupScript("ScrollToBottom", "<script
language='javascript'>" + System.Environment.NewLine +
"window.scrollTo(0,9999999)" + System.Environment.NewLine + "</script>");
end if
or you could use an #anchor

The best question would be "Why the heck are you redirecting to the same
page after postback?"

Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Rafael Leonhardt" <ra**************@benner.com.br> wrote in message
news:u7**************@TK2MSFTNGP15.phx.gbl...
I know that smartnavigation works on formpost.
But I can to do smartnavigation works when I redirect to same page than post the page.

Example:

Actual page is "mainpage.aspx?param=xx"
In a button click I Redirect to "mainpage.aspx?param=yy" but I want that
scroll stay on position of button.

Is possible? Who/Where save the position before formPost?

Nov 19 '05 #2

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

Similar topics

4
by: Jan Heppen | last post by:
Hi, I'm having a problem with SmartNavigation. When I open up a new (popup) window using response.redirect on one of my web pages, the new window doesn't come on top the parent window. It goes...
1
by: Heinrich Moser | last post by:
SmartNavigation is supposed to keep the page's last state in the browser history. As far as I can tell, it doesn't do that if you use Response.Redirect to change to another page. Steps to...
2
by: SLE | last post by:
A web user control exposes a RadioButtonList (with AutoPostBack = true) called "Question". This control also has an embedded RequiredFieldValidator control. 1. Main ASPX page is populated with...
2
by: amiringo | last post by:
I have two problems after set this page directive... First, when I run the web application in my side(installed VS.NET) the page include that directive, it will redirect to the following address....
6
by: Gary | last post by:
I have the following in my web.config.... <customErrors mode="RemoteOnly" defaultRedirect="Applicationerror.aspx"/> but, my error page does not display. Instead a 'Runtime Error' page...
4
by: Dagong Wang | last post by:
Hi, I have an ASP.NET application that works fine in my testing server. However, when I uploaded it into a hosting server, page SmartNavigation option and server side redirection, such as...
2
by: Tmez | last post by:
FYI Problem: Response.redirect redirects to the same page and the page is blank. Solution: set the page's smartnavitation to false before redirecting. There seems to be a connection between...
0
by: Alfonso Alvarez | last post by:
Hi all: I have a problem with my webpage when I try to make a response.redirect and i have de smartnavigation option set true. If I put smartnavigation to false it works fine, but if I have...
2
by: WJ | last post by:
I have a web site with 2 pages under W2k3 box (IIS-6). 1. From WebForm1.Aspx.Button1Click, I issued Response.Redirect("WebForm2.Aspx",true) - This works fine. 2. From WebForm2.Aspx.Button1Click,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.