473,790 Members | 3,083 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Anchored links for aspx files

It seems I can't get an anchored link inside an aspx address to work.
I'm looking to create an anchored link with the title of a news article
here:

<asp:DataList id="thedata2" runat="server"
RepeatColumns=" 1" RepeatDirection ="vertical"
CellSpacing="3" >
<ItemTemplate >
<b><a href="#a<%# Container.DataI tem("newsID")%> "><%#
Container.DataI tem("newsheader ")%></a></b>
'''the rest of the repeater stuff with closing tags

Now I dynamically create the destination anchor here:

<asp:DataList id="thedata" runat="server"
RepeatColumns=" 1" RepeatDirection ="vertical"
CellSpacing="3" >
<ItemTemplate >
<A NAME="a<%# Container.DataI tem("newsID")%> "><b><%#
Container.DataI tem("newsheader ")%></b>
'''the rest of the repeater stuff with closing tags

The address with the mypage.aspx#a10 0 (or whatever the newsID happens
to be) shows up in the status bar on the browser, but clicking into the
link doesnt go to the destination; nothing happens.

..NetSports

Nov 19 '05 #1
0 890

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

Similar topics

0
1040
by: karlodb | last post by:
Hi all, I've been struggling with some strange VB behaviour for the last two days. I have created a usercontrol and placed two buttons in it. One is anchored bottom and right. When place the control on the form all is fine, I dock it to fill and then resize the form and the last button remains anchored bottom and right. I then build the project / or run the project and all is OK. Now I changed the control to accept constituent...
1
350
by: Randy | last post by:
Can footers be forced to the bottom of an .ASPX page either using #include or User Controls? I got a page that starts out displaying 3 drop down lists, one text box, 5 labels and 1 Submit Button. The goal is to initially have the footer display below the Submit Button. Once data has been filled in, a DataGrid will display data based on the criteria. The drop downs work, the DataGrid displays data correctly. The problem is that when I...
0
920
by: Phillip Davis | last post by:
KB 316560 - FIX: Anchored Control on Inherited Form Changes Location When You Recompil http://support.microsoft.com/default.aspx?scid=kb;en-us;31656 Is NOT fixed at all. On 'Steps to Reproduce Behavior' ad 9. Add a textbox anywhere to Form2 10. Combine the project and see that the bug still exists This still makes Inherited Forms absolutely useless.
3
2429
by: Junkguy | last post by:
Hi, I'm having a problem in Visual Studio in C#, using .NET Framework 1.1 Version 1.1.4322 and Microsoft Development Environment 2003 Version 7.1.3088 I make a form A and subclass it with form B. I place a protected component on A and anchor it top,left,bottom,right. If I change the size of form B, component G will resize with it proportionally. But, when I recompile, the derived component G on form B will
12
1866
by: Alan Silver | last post by:
Hello, I Classic ASP, I used to have a standard way of making the top-level site navigation links. I had an include file which included a Sub like this ... Sub MakeLink(TocURL, TocText) If TocURL = ThisURL Then Response.Write("<br>" & TocText) Else
2
1299
by: kjvt | last post by:
I have just about given up on using a base form class with anchored controls! My base form has a protected tab control that I would like to anchor to all sides of the form. However, the derived forms can be different sizes. Whenever the project is compiled, the size of the tab form on the derived forms changes, if the derived form is a different size than the base. A KB article (316560 FIX: Anchored Control on Inherited Form Changes...
24
2285
by: Fred Lock | last post by:
Hello, I have a page with a usual mouseover link highlight effect eg.: a:hover {color: #ff0000; text-decoration: none;} I also have some anchor links such as: <a href="#jalfrezi">Jalfrezi</a> | <a href="#vindaloo">Vindaloo</a> | etc...
0
2390
by: rn5a | last post by:
In a shopping cart app, assume that a user has placed 4 orders (each order has a corresponding OrderID which will be unique). When he comes to MyCart.aspx, by default, the details of his last order he had placed will be displayed in a DataList. Also assume that the OrderID of the last order is 13. The details of the earlier orders placed by a particular user (when the user places more than 1 order) can be viewed by clicking links. The...
3
2768
by: Peter K | last post by:
Hi I need to make a list of "download file links" on a webpage. All the data is dynamic - it depends on the user's actions how many files, and which files, I need to present in the list. The files are identified by an id in a database. How do I do this? I was thinking I could somehow make a list of <a href...> tags which could call a method in my c# code-behind. Is this possible? Or is there a better way?
0
9666
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
9512
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10147
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
9987
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6770
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
5424
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
5552
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4100
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
2
3709
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.