473,385 Members | 1,973 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.

Can a 'bookmark' link be put in an asp.net page?

In html I learned that you could have a tag such as:
<a name="go_here">
Then, if you linked to the page, as follows <a
href="MyPage.htm#go_here">
You would go to the particular position
in the page where 'go_here' was.
I need to do something like that, but Visual Studio doesn't have any
tag that looks like:
<a name="etc
Is this something that can be done in VS?
Or is there a better way to make a page go to a particular position in
the page?
Thanks,
Marv
Jun 27 '08 #1
3 3117
It's not an ASP.Net kind of thing - -
check out:
http://www.yourhtmlsource.com/javasc...favorites.html

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no
bloated markup
<CO*********@lycos.comwrote in message
news:be**********************************@59g2000h sb.googlegroups.com...
In html I learned that you could have a tag such as:
<a name="go_here">
Then, if you linked to the page, as follows <a
href="MyPage.htm#go_here">
You would go to the particular position
in the page where 'go_here' was.
I need to do something like that, but Visual Studio doesn't have any
tag that looks like:
<a name="etc
Is this something that can be done in VS?
Or is there a better way to make a page go to a particular position in
the page?
Thanks,
Marv

Jun 27 '08 #2
re:
!is there a better way to make a page go to a particular position in the page?

There's several approaches to that.

The simplest is to use a Page directive :

<%@ Page MaintainScrollPositionOnPostback="true"%>

Then, there's Fredrik Normén's script :

http://forums.asp.net/p/948134/1149902.aspx

Then, there's Jeff Prosise's script :
http://searchwindevelopment.techtarg...931802,00.html

However, none of those work with external links, only with postbacks.

If you don't want the page to start at the top, you can use a control and set focus to it :

SomeControl.SetFocus()

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
<CO*********@lycos.comwrote in message news:be**********************************@59g2000h sb.googlegroups.com...
In html I learned that you could have a tag such as:
<a name="go_here">
Then, if you linked to the page, as follows <a
href="MyPage.htm#go_here">
You would go to the particular position
in the page where 'go_here' was.
I need to do something like that, but Visual Studio doesn't have any
tag that looks like:
<a name="etc
Is this something that can be done in VS?
Or is there a better way to make a page go to a particular position in
the page?
Thanks,
Marv

Jun 27 '08 #3
re:
!It's not an ASP.Net kind of thing - -

That's not what the OP was asking about.

He wants to know whether a link like
<a href="MyPage.htm#go_here"works in ASP.NET.

It does not.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"David Wier" <dw@dw.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
It's not an ASP.Net kind of thing - -
check out:
http://www.yourhtmlsource.com/javasc...favorites.html

David Wier
http://aspnet101.com
http://iWritePro.com - One click PDF, convert .doc/.rtf/.txt to HTML with no bloated markup
<CO*********@lycos.comwrote in message news:be**********************************@59g2000h sb.googlegroups.com...
>In html I learned that you could have a tag such as:
<a name="go_here">
Then, if you linked to the page, as follows <a
href="MyPage.htm#go_here">
You would go to the particular position
in the page where 'go_here' was.
I need to do something like that, but Visual Studio doesn't have any
tag that looks like:
<a name="etc
Is this something that can be done in VS?
Or is there a better way to make a page go to a particular position in
the page?
Thanks,
Marv


Jun 27 '08 #4

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

Similar topics

5
by: Robert Mark Bram | last post by:
Hi All! How do you get the bookmark on the end of a url with ASP? For example, this page from 4GuysFromRolla: http://www.4guysfromrolla.com/demos/servervariables.asp#blobby "blobby" doesn't...
1
by: Targa | last post by:
After I submit a form from a popup window, I use the following code to close the popup and refresh the parent window. <a href="#" onclick="window.opener.location.reload();self.close();return...
6
by: Chris | last post by:
I have been learning C and want to write a program and need someone to point me in the write direction. I want to write a program to store all my webpage bookmarks in possibly one file. I want it...
3
by: John Carnahan | last post by:
How would I accomplish the following ? Navigate to a bookmark on a page from a routine in the code behind. ---- html code bookmark1 (someplace on the page... is this an htmlanchor?) ??...
2
by: Tom | last post by:
I have an ASP.NET page called Login; however, I would like it to have a different 'default' name when someone attempts to bookmark the page. I.E. When they bring up my page and then try to add a...
1
by: Cat | last post by:
Hello, maybe someone can help me here.. I was looking for a bookmark script to implement on my website. Actually I always thought such scripts are pretty obsolete but I do have a frame page...
4
by: zzapper | last post by:
Hi, I use an internal bookmark <form method="post" action="${form_action}#mark1"> to return to the correct place in the page. In case of an error I would wish to return to the top of the...
13
by: eighthman11 | last post by:
using Access 2003 and sql server version 8.0 Hey everyone. Created a text box where the user types in an Inventory number and it takes them to that inventory number on the contimuous form. The...
23
by: Stanimir Stamenkov | last post by:
I want to find out whether the following usage of the "Bookmark" link type is o.k. An example could be seen at <http://www.geocities.com/stanio/more/horoskop.html>. The text is in Bulgarian and...
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: 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...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
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...

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.