473,804 Members | 3,475 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Navigate to specific location on page

Hi

I am trying to link to a specific location on a page using a named anchor. I also have some parameters attached to the query string. I am having problems getting the page to display the correct portion of the page when it loads

I have a few named anchors on the page using the following format <a name="branding" ></a>Then some text here. In the URL I have http://mysite.com.au/default.aspx?id=1#branding when I load this page it does scroll down a little bit but not to the correct location

Can anyone give me a pointer to what I am doing wrong

Thanks.
Nov 18 '05 #1
1 1880
You are doing it right.

Its abt the length of the page. It wil scroll down to the end of the page
maximum. If it take more to reach your <a name> then it wont.

Cheers!
Rajiv. R
Rajspace.Org

--
Cheers!
Rajiv. R
Rajspace.Org

"Linda Wienholt" <an*******@disc ussions.microso ft.com> wrote in message
news:E5******** *************** ***********@mic rosoft.com...
Hi,

I am trying to link to a specific location on a page using a named anchor. I also have some parameters attached to the query string. I am having
problems getting the page to display the correct portion of the page when it
loads.
I have a few named anchors on the page using the following format <a name="branding" ></a>Then some text here. In the URL I have
http://mysite.com.au/default.aspx?id=1#branding when I load this page it
does scroll down a little bit but not to the correct location.
Can anyone give me a pointer to what I am doing wrong.

Thanks.

Nov 18 '05 #2

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

Similar topics

2
10407
by: Boyd | last post by:
Hello All, I have a dropdown on a page (contact_us.asp) that when it is changed the page reloads and displays the contact details selected, to do this i have a onChange() running on the dropdown and that runs a function in my javascript. All the JS function is: function OfficeChange()
2
7645
by: djozy | last post by:
Please I have dropdownlist on my web form. I would like to get web page from url adress automaticly, when I select one of the items in dropdownlist. I have put autopostback property of dropdownlist to true. Is there any way to get url adress using normal buttons, or like in this case, list controls instead using only hyperlink Thank you
1
1795
by: lorents | last post by:
hello i have this small code: <? if ($errorsTable == 0) { ?> <script type="text/javascript"> window.navigate("main.php"); </script> <?
3
8800
by: stephen.cunliffe | last post by:
Hi all, This may sound real strange, but I'm curious what the "official" answer is. In my JS, I want to redirect/navigate to a url... In Mozilla, document.location.href = '{my_url}'; //works in Moz, IE6, IE7, Opera,
0
2434
by: tasmontique | last post by:
I hope someone can help me. I have an error that I can not seem to figure out. All I need is an unbound dropdownlist to navigate to urls withing the website. I have gotten as far as to populate field but I am stuck at this point. I am new to asp.net and this is my first website. Below is my code please help. Content controls have to be top-level controls in a content page or a nested master page that references a master page. ...
2
1467
by: =?Utf-8?B?UmljaGFyZA==?= | last post by:
Hello, How are the following ways to navigate the site different? Why are there so many to do the same thing? Which one is best to follow? window.href.location = "..." Server.Transfer("...") Response.Redirect("...")
1
2401
by: aecorzine | last post by:
Hopefully someone can help... I am new to the programming environment. I am attempting to programmatically (through a click event) open a pdf file and go to a specific page within that file so that the user can read from the pdf (the page number will be found in a database table). I have found code that will either 1) open the pdf in it's own application and 2) open the pdf in a VB Form. Either one of those is fine with me. However, I...
5
23454
by: timnels | last post by:
I have a web browser control that I'd like to point at a HTML file in my installation directory. I am doing something like: string path = Path.GetDirectoryName( Assembly.GetExecutingAssembly().GetModules() .FullyQualifiedName) + "\\howdoi.htm"; webBrowser1.Navigate(path); What do I need to do to form the correct URI string for a local file?
1
3512
by: Falcula | last post by:
Hello, I have a treeview control, when i select a item i navigate to url. But selected node is lost, it reset itself, loosing state. I post my code here. Thanks in advance. <script language="javascript">
0
10589
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10327
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7625
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5663
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.