Solved

HTML5 ListView Page Jumping

Posted on 2014-10-08
2
257 Views
Last Modified: 2014-10-08
Hello Experts.

I have a glossary type page that uses the standard page jumping technique. I am tasked with rewriting the page to fit HTML5 standards, which then rules out the name attribute of an anchor tag.

My question: How would I dynamically set the id attribute of an anchor, generated in a listview, to allow for page jumping?

Ex: Old code
 
<a runat="server" name='<%# Eval("ColumnID") %>'></a>

Open in new window

This worked because name accepted non static values. With the name attribute being deprecated, I must use the id attribute to achieve jumping. The id attribute only accepts static values.

Any help you might provide would be appreciated. Thank you.
0
Comment
Question by:iteealro
2 Comments
 
LVL 30

Accepted Solution

by:
Alexandre Simões earned 500 total points
ID: 40368684
Can't you just remove the runat="server" from there?
<a id='<%# Eval("ColumnID") %>'></a>

Open in new window

Why do you need the anchor to be a server-side control?
0
 

Author Closing Comment

by:iteealro
ID: 40368689
I am new to the web side of things, and did not realize that was even relevant to my issue. Thanks.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now