Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Paging for DataList
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Paging for DataList

 Post Reply Post Reply Page  <12
Author
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 03 February 2005 at 1:30am
I know how to do paging for a data list now. However, I would like to know how you can add CSS style to <asp:label id="pnlPager" runat="server" Font-Names="Verdana" Font-Size="12px"/>.
 
Here's an example of a hyperlink that uses CSS:

<a class=TOC HREF="sign.aspx">Sign Guest Book</A>

Can someone please tell me how to apply a CSS style to a label like pnlPager?

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mart Quote  Post ReplyReply Direct Link To This Post Posted: 03 February 2005 at 2:13am
<asp:label id="pnlPager" runat="server" CssClass="TOC" />
Back to Top
Misty View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 February 2002
Location: United States
Status: Offline
Points: 711
Post Options Post Options   Thanks (0) Thanks(0)   Quote Misty Quote  Post ReplyReply Direct Link To This Post Posted: 04 February 2005 at 1:54am
Originally posted by Mart Mart wrote:

<asp:label id="pnlPager" runat="server" CssClass="TOC" />
 
Unfortunately, this wouldn't work. I also tried removing Css.
 
Here's my CSS code:
 
<STYLE TYPE="text/css">
<!--
 .MyH1 
 { 
  font-family:small arial,sans-serif;    
  font size: 15;
  color: Navy;
  font-weight: bold;
 }
 
 a.Navigate
 {
   
     font:small arial,sans-serif
     font size: 15;
  color: Navy;  
  text-decoration:underline;
  font-weight:bold;  
 }
 
 a.TOC
 {
  font-family:small arial,sans-serif
  font size: 15;
  font-style:Bold;
  color:Navy; 
  text-decoration:none;
  font-weight: bold;
 }
 a.TOC:hover
 {
  color: Navy;
  font size: 15;
  font-style:Bold;
  text-decoration:underline; 
  font-weight: bold; 
 }
-->
</STYLE> 
 
How do I get the page numbers to be in CSS style?


Edited by Misty - 04 February 2005 at 1:54am
Back to Top
Leeb65 View Drop Down
Groupie
Groupie


Joined: 05 December 2003
Location: Germany
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote Leeb65 Quote  Post ReplyReply Direct Link To This Post Posted: 10 February 2005 at 2:26am
instead of:
 
a.TOC
 {
  font-family:small arial,sans-serif
  font size: 15;
  font-style:Bold;
  color:Navy; 
  text-decoration:none;
  font-weight: bold;
 }
 
try:
 
.TOC
 {
  font-family:small arial,sans-serif
  font size: 15;
  font-style:Bold;
  color:Navy; 
  text-decoration:none;
  font-weight: bold;
 }

Lee


Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.