Solved

HTML5 ListView Page Jumping

Posted on 2014-10-08
2
270 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

839 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