Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

HTML5 ListView Page Jumping

Posted on 2014-10-08
2
Medium Priority
?
315 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

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…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

661 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