Solved

classic asp recordset paging

Posted on 2011-09-02
3
632 Views
Last Modified: 2012-05-12
9-2-2011-8-26-41-AM.pdf

Hi I have classic asp and use recordset to show the data from sql server database. and have two question.

1. Please view attached, when the mouse over on particular row. Is it possible to do something like that attached?

2. how to do the alternative color. the row color is different.

0
Comment
Question by:Webboy2008
[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
3 Comments
 
LVL 30

Expert Comment

by:LZ1
ID: 36474236
I actually am working on the exact same type of project.  I found this jquery plugin to be extremely helpful

http://www.datatables.net/index 
0
 

Author Comment

by:Webboy2008
ID: 36474876
look good but i don't have time to learn this.
0
 
LVL 30

Accepted Solution

by:
LZ1 earned 500 total points
ID: 36474911
Not really a whole lot to learn. You basically already have your table with your repeat-region right?

Give your table an ID, then you can basically do something like this, after you've included the Jquery library of course:
<script type="text/javascript">
		$(document).ready(function() {
			$('#admin').dataTable( {
				"aaSorting": [[ 4, "desc" ]],
				"sDom": 'Rlfrtip',
				"bStateSave":true,
				"sPaginationType": "full_numbers"
			} );
		} );
		</script>

Open in new window


If you still don't want to do something like that then for highlighting and clicking you can use something like this:  
<script type="text/javascript">
		    $(document).ready(function() {
			 $('#admin tr')
			   .addClass('highlight')
			   .end()
			 .click(function(event) {
			   $(this).toggleClass('highlight');
			 });
		    });
		</script>

Open in new window


Just make sure to give your CSS a class of .highlight.  Mine looks like this:
table#admin .highlight td,
table#admin tr.alt.highlight td{background:#FF6;}

Open in new window

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Title # Comments Views Activity
Responsive Font Size 6 48
Send form to asp server side 6 26
Session on Html 8 39
.CSS HTML Help 3 24
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

749 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