Solved

HTML5 ListView Page Jumping

Posted on 2014-10-08
2
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

761 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