• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

dmcbrier
#1 Posted : Sunday, December 21, 2008 11:14:56 AM(UTC)
dmcbrier

Rank: Member

Joined: 8/25/2007(UTC)
Posts: 124

Currently my pager.ascx control is outputting in a vertical list format:



<LI class=disabled id=ctl00_MainContentHolder_Pager1_FirstListItem>First
<LI class=disabled id=ctl00_MainContentHolder_Pager1_PreviousListItem>Prev
<LI class=current>2[/color]
<LI>[color=#810081>3]<LI>4[/color]
<LI>[color=#0000ff>5]<LI id=ctl00_MainContentHolder_Pager1_NextListItem>Next[/color]
<LI id=ctl00_MainContentHolder_Pager1_LastListItem><FONT color=#0000ff>Last </LI>



I would like to have the pager.ascx output changed to a horizontal format.
I think it is important to also simplify the control. I will not require First and Last.

Previous Page 1 2 3 4 5 Next Page


How do I go about doing this?
- Is there a way to do this in the Admin Settings Software Options?
- Can this easily be changed in CSS?
- Do I modify pager.ascx?
- Do I have to modify Pager.ascx.vb?
- Is their a setting I can change in

I am using have visual Web developer 2008 Express Edition.

Thank you.
birdsafe
#2 Posted : Sunday, December 21, 2008 11:39:00 AM(UTC)
birdsafe

Rank: Member

Joined: 2/21/2007(UTC)
Posts: 1,113

doesn't sound like something is right. Make sure there isn't a line break (< br >) inserted somewhere in that code that is causing a break after each number
dmcbrier
#3 Posted : Sunday, December 21, 2008 11:45:06 AM(UTC)
dmcbrier

Rank: Member

Joined: 8/25/2007(UTC)
Posts: 124

Here is what is in the Pager.ascx

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Pager.ascx.vb" Inherits="BVModules_Controls_Pager" %>
<div class="pager">
<ul>
<li id="FirstListItem" runat="server"></li>
<li id="PreviousListItem" runat="server"></li>
<asp:PlaceHolder ID="PagesPlaceHolder" runat="server"></asp:PlaceHolder>
<li id="NextListItem" runat="server"></li>
<li id="LastListItem" runat="server"></li>
</ul>
</div>
dmcbrier
#4 Posted : Sunday, December 21, 2008 11:52:14 AM(UTC)
dmcbrier

Rank: Member

Joined: 8/25/2007(UTC)
Posts: 124

I must have something screwed up in the CSS ... When I flip the theme to the standard bvc5 it looks correct (Horizontal)

First Prev 1 2 3 4 5 Next Last
Matt@9BallDesign
#5 Posted : Sunday, December 21, 2008 12:04:03 PM(UTC)
Matt@9BallDesign

Rank: Member

Joined: 12/23/2003(UTC)
Posts: 909

Sounds like you're missing the styles for the pager in your theme.

Paste this into your theme's stylesheet and format as you see fit:

/* Pager Control */
.pager { margin: 10px 0; padding: 5px 0; text-align: center; clear: both; }
.pager ul {list-style:none;margin:0;padding:0;}
.pager ul li {display:inline;margin:0;padding:0}
.pager a {color:#ddd; text-decoration:none;margin:0 20px 0 0;}
Matt Martell


http://www.9balldesign.com - Web, Print, Graphic


http://www.martellhardware.com/ - Decorative &amp; Builder's Hardware

------------------------------------------------
dmcbrier
#6 Posted : Sunday, December 21, 2008 12:16:12 PM(UTC)
dmcbrier

Rank: Member

Joined: 8/25/2007(UTC)
Posts: 124

My main.css did not have a pager control. I cut and pasted a pager control class format from another theme and this resolved the issue. Thank you for the help.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012