Solved

HTML5 ListView Page Jumping

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

861 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

23 Experts available now in Live!

Get 1:1 Help Now