473,616 Members | 2,800 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

named anchor

Hi,

Is there a gui control in VS2005 to set a "named anchor"?

For an example now I go to the html and write the following code

<a name="jumpToThi sLocation"/>

Thanks

Nalaka


Dec 23 '05 #1
6 2890
Hi Nalaka,

What do you mean by named anchor? Do you mean by a hyperlink or make the
control anchor to some place in the page?

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Dec 24 '05 #2
There is no specific anchor control.
If you are trying to add it programmaticall y, use a LiteralControl.
If you are trying to add it from HTML view, just type in the HTML.
Dec 24 '05 #3
Hi Nalaka,

As Joshua has mentioned, so far there is no build-in Server control which
particularly represent the html anchor, however, we can just declare the <a
name="myanchor" runat="server" /> so that the ASP.NET page will add a
LiteralControl member to associate the html element (which we can reference
in our code....).

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Date: Sat, 24 Dec 2005 11:07:29 -0600
| From: Joshua Flanagan <jo**@msnews.co m>
| User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
| X-Accept-Language: en-us, en
| MIME-Version: 1.0
| Subject: Re: named anchor
| References: <#s************ *@TK2MSFTNGP15. phx.gbl>
| In-Reply-To: <#s************ *@TK2MSFTNGP15. phx.gbl>
| Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| Content-Transfer-Encoding: 7bit
| Message-ID: <#8************ **@TK2MSFTNGP14 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: cpe-66-25-132-55.austin.res.r r.com 66.25.132.55
| Lines: 1
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3669 31
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| There is no specific anchor control.
| If you are trying to add it programmaticall y, use a LiteralControl.
| If you are trying to add it from HTML view, just type in the HTML.
|

Dec 26 '05 #4
Hi Nalaka,

Any progress on this? If there're anything else we can help ,please feel
free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 12113614
| References: <#s************ *@TK2MSFTNGP15. phx.gbl>
<#8************ **@TK2MSFTNGP14 .phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online. microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Mon, 26 Dec 2005 01:20:28 GMT
| Subject: Re: named anchor
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| Message-ID: <Oh************ **@TK2MSFTNGXA0 2.phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Lines: 40
| Path: TK2MSFTNGXA02.p hx.gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3669 94
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Nalaka,
|
| As Joshua has mentioned, so far there is no build-in Server control
which
| particularly represent the html anchor, however, we can just declare the
<a
| name="myanchor" runat="server" /> so that the ASP.NET page will add a
| LiteralControl member to associate the html element (which we can
reference
| in our code....).
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
| --------------------
| | Date: Sat, 24 Dec 2005 11:07:29 -0600
| | From: Joshua Flanagan <jo**@msnews.co m>
| | User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
| | X-Accept-Language: en-us, en
| | MIME-Version: 1.0
| | Subject: Re: named anchor
| | References: <#s************ *@TK2MSFTNGP15. phx.gbl>
| | In-Reply-To: <#s************ *@TK2MSFTNGP15. phx.gbl>
| | Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| | Content-Transfer-Encoding: 7bit
| | Message-ID: <#8************ **@TK2MSFTNGP14 .phx.gbl>
| | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| | NNTP-Posting-Host: cpe-66-25-132-55.austin.res.r r.com 66.25.132.55
| | Lines: 1
| | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
| | Xref: TK2MSFTNGXA02.p hx.gbl
| microsoft.publi c.dotnet.framew ork.aspnet:3669 31
| | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| |
| | There is no specific anchor control.
| | If you are trying to add it programmaticall y, use a LiteralControl.
| | If you are trying to add it from HTML view, just type in the HTML.
| |
|
|

Dec 28 '05 #5
Thanks Steven....
Thats it for now....

Thanks
Nalaka

"Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
news:8t******** ******@TK2MSFTN GXA02.phx.gbl.. .
Hi Nalaka,

Any progress on this? If there're anything else we can help ,please feel
free to post here.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| X-Tomcat-ID: 12113614
| References: <#s************ *@TK2MSFTNGP15. phx.gbl>
<#8************ **@TK2MSFTNGP14 .phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
| Content-Transfer-Encoding: 7bit
| From: st*****@online. microsoft.com (Steven Cheng[MSFT])
| Organization: Microsoft
| Date: Mon, 26 Dec 2005 01:20:28 GMT
| Subject: Re: named anchor
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| Message-ID: <Oh************ **@TK2MSFTNGXA0 2.phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| Lines: 40
| Path: TK2MSFTNGXA02.p hx.gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3669 94
| NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
|
| Hi Nalaka,
|
| As Joshua has mentioned, so far there is no build-in Server control
which
| particularly represent the html anchor, however, we can just declare the
<a
| name="myanchor" runat="server" /> so that the ASP.NET page will add a
| LiteralControl member to associate the html element (which we can
reference
| in our code....).
|
| Thanks,
|
| Steven Cheng
| Microsoft Online Support
|
| Get Secure! www.microsoft.com/security
| (This posting is provided "AS IS", with no warranties, and confers no
| rights.)
| --------------------
| | Date: Sat, 24 Dec 2005 11:07:29 -0600
| | From: Joshua Flanagan <jo**@msnews.co m>
| | User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
| | X-Accept-Language: en-us, en
| | MIME-Version: 1.0
| | Subject: Re: named anchor
| | References: <#s************ *@TK2MSFTNGP15. phx.gbl>
| | In-Reply-To: <#s************ *@TK2MSFTNGP15. phx.gbl>
| | Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| | Content-Transfer-Encoding: 7bit
| | Message-ID: <#8************ **@TK2MSFTNGP14 .phx.gbl>
| | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| | NNTP-Posting-Host: cpe-66-25-132-55.austin.res.r r.com 66.25.132.55
| | Lines: 1
| | Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
| | Xref: TK2MSFTNGXA02.p hx.gbl
| microsoft.publi c.dotnet.framew ork.aspnet:3669 31
| | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| |
| | There is no specific anchor control.
| | If you are trying to add it programmaticall y, use a LiteralControl.
| | If you are trying to add it from HTML view, just type in the HTML.
| |
|
|

Dec 28 '05 #6
Thanks for your followup Nalaka,

Good luck!

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Nalaka" <na******@nospa m.nospam>
| References: <#s************ *@TK2MSFTNGP15. phx.gbl>
<#8************ **@TK2MSFTNGP14 .phx.gbl>
<Oh************ **@TK2MSFTNGXA0 2.phx.gbl>
<8t************ **@TK2MSFTNGXA0 2.phx.gbl>
| Subject: Re: named anchor
| Date: Wed, 28 Dec 2005 09:37:53 -0800
| Lines: 91
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <O#************ **@TK2MSFTNGP10 .phx.gbl>
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: m181-9.bctransit.bc. ca 199.60.181.9
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP10.phx. gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3673 45
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Thanks Steven....
| Thats it for now....
|
| Thanks
| Nalaka
|
|
|
| "Steven Cheng[MSFT]" <st*****@online .microsoft.com> wrote in message
| news:8t******** ******@TK2MSFTN GXA02.phx.gbl.. .
| > Hi Nalaka,
| >
| > Any progress on this? If there're anything else we can help ,please feel
| > free to post here.
| >
| > Regards,
| >
| > Steven Cheng
| > Microsoft Online Support
| >
| > Get Secure! www.microsoft.com/security
| > (This posting is provided "AS IS", with no warranties, and confers no
| > rights.)
| > --------------------
| > | X-Tomcat-ID: 12113614
| > | References: <#s************ *@TK2MSFTNGP15. phx.gbl>
| > <#8************ **@TK2MSFTNGP14 .phx.gbl>
| > | MIME-Version: 1.0
| > | Content-Type: text/plain
| > | Content-Transfer-Encoding: 7bit
| > | From: st*****@online. microsoft.com (Steven Cheng[MSFT])
| > | Organization: Microsoft
| > | Date: Mon, 26 Dec 2005 01:20:28 GMT
| > | Subject: Re: named anchor
| > | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| > | Message-ID: <Oh************ **@TK2MSFTNGXA0 2.phx.gbl>
| > | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| > | Lines: 40
| > | Path: TK2MSFTNGXA02.p hx.gbl
| > | Xref: TK2MSFTNGXA02.p hx.gbl
| > microsoft.publi c.dotnet.framew ork.aspnet:3669 94
| > | NNTP-Posting-Host: TOMCATIMPORT1 10.201.218.122
| > |
| > | Hi Nalaka,
| > |
| > | As Joshua has mentioned, so far there is no build-in Server control
| > which
| > | particularly represent the html anchor, however, we can just declare
the
| > <a
| > | name="myanchor" runat="server" /> so that the ASP.NET page will add
a
| > | LiteralControl member to associate the html element (which we can
| > reference
| > | in our code....).
| > |
| > | Thanks,
| > |
| > | Steven Cheng
| > | Microsoft Online Support
| > |
| > | Get Secure! www.microsoft.com/security
| > | (This posting is provided "AS IS", with no warranties, and confers no
| > | rights.)
| > | --------------------
| > | | Date: Sat, 24 Dec 2005 11:07:29 -0600
| > | | From: Joshua Flanagan <jo**@msnews.co m>
| > | | User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
| > | | X-Accept-Language: en-us, en
| > | | MIME-Version: 1.0
| > | | Subject: Re: named anchor
| > | | References: <#s************ *@TK2MSFTNGP15. phx.gbl>
| > | | In-Reply-To: <#s************ *@TK2MSFTNGP15. phx.gbl>
| > | | Content-Type: text/plain; charset=ISO-8859-1; format=flowed
| > | | Content-Transfer-Encoding: 7bit
| > | | Message-ID: <#8************ **@TK2MSFTNGP14 .phx.gbl>
| > | | Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| > | | NNTP-Posting-Host: cpe-66-25-132-55.austin.res.r r.com 66.25.132.55
| > | | Lines: 1
| > | | Path:
TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGP14.phx. gbl
| > | | Xref: TK2MSFTNGXA02.p hx.gbl
| > | microsoft.publi c.dotnet.framew ork.aspnet:3669 31
| > | | X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
| > | |
| > | | There is no specific anchor control.
| > | | If you are trying to add it programmaticall y, use a LiteralControl.
| > | | If you are trying to add it from HTML view, just type in the HTML.
| > | |
| > |
| > |
| >
|
|
|

Dec 29 '05 #7

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

Similar topics

5
8984
by: Peroq | last post by:
Hi all, All of these fail : response.redirect("page.asp?Param=Param#Anchor") response.redirect("page.asp#Anchor?Param=Param") This one works fine : location.href = "page.asp?Param=Param#Anchor" I have a solution i dont like :
1
3260
by: John | last post by:
HI, I was wondering if it is possible to target a named anchor in a frame when opening a new window with a javascript function? has anyone actualy been able to do this? Thanks in advance for your answer Sean
4
3448
by: deko | last post by:
I use named anchors to take users to specific parts of a long page. But I want to add some processing and do some things with my nav bar when users go to certain sections delineated by named anchors. I understand that the anchors array creates an element for each anchor in the page when the page is loaded, but how do I identify which anchor is currently being viewed? Here's some pseudo code: if (document.anchors.name == "section_B") {
3
3845
by: gary | last post by:
Hi, I am trying to reference an anchor in a user control with a url. This worked in 1.1 but no longer works in 2.0. The ascx control is located in a "/include" folder If you have a hyperlink control and you assign the navigateurl property = "../#anchor" whereby you want to add this # reference to the current url the url ends up with the #anchor twice.
12
2125
by: deko | last post by:
I have a long page with several sections and want to link to these sections from another page like this: <a href='http://www.mysite.com/content.html#section12'>Section 12</a> Here's what the anchor looks like in content.html: <h2 id="section12"><a href=http://www.mysite.com/index.html target="_self">Return to Table of Contents</a></h2>
6
5551
by: Greg Collins [Microsoft MVP] | last post by:
In ASPX, how does one get the named anchor from a URL? Its not in any of the ServerVariables. If a url is: http://www.somerandomsite.com/page.aspx#named_anchor How do I get the value of the named anchor after the # character? -- Greg Collins Visit Brain Trove ( http://www.BrainTrove.com )
1
2466
by: Alec MacLean | last post by:
Hi. I'm using VS2005 Pro to work on a website project for my company. The site has several navigation elements, all based on the standard VS2005 navigation components. I have high-level section navigation provided via a horizontal menu, a SiteMapPath to provide a breadcrumb and a vertical menu component on the left edge.
3
4515
by: Joseph Gruber | last post by:
Hi all -- I have two questions. First, I'm adding a control to my form at runtime and the control/form seems to ignore the anchor property of the runtime control. Any idea how I can get a runtime control to anchor properly? Second -- the program I'm writting is supposed to look like a dos application (long story). When the application is "Normal" aka a small window then everything looks great. But when I resize the window to...
8
5130
by: azjudd | last post by:
Thank you in advance for your help on this one. I'm using named anchor tags on a FAQ page with questions listed at the top and answers below; a standard jump-to feature. However, anytime an anchor tag link is used, whether it be a question down to an answer or an answer back to the list of questions, I lose the banner div, a good portion of of my MenuDv disappears, and white space is added to the bottom of my page. You can see my FAQ page...
0
8199
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8642
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...
0
8592
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
5550
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
4060
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
4140
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2576
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
1
1759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1439
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.