asp.net 3.5 datapager problem

Izi

Izi

Soldato
Joined
9 Dec 2007
Posts
2,718
Code:
 <asp:DataPager ID="DataPager1" runat="server" PagedControlID="lvItemsTable" PageSize="4" >
        <Fields>
            <asp:NextPreviousPagerField ButtonType="Image" ShowFirstPageButton="True"
                ShowLastPageButton="True" FirstPageImageUrl="~/_images/first.gif" 
                LastPageImageUrl="~/_images/last.gif" NextPageImageUrl="~/_images/next.gif" 
                PreviousPageImageUrl="~/_images/prev.gif" />
        </Fields>
    </asp:DataPager>

I am using the above code to page through some DB material using some images as the buttons.

The output from this is for one of the buttons is:

Code:
<input type="image" name="ctl00$ContentPlaceHolder1$DataPager1$ctl00$ctl00" disabled="disabled" class="img" src="_images/first.gif" alt="First" style="border-width:0px;" />

As you can see it puts style=border-width:0px in which I dont want as the validators read this as border=0 which isnt valid xhtml.

Is there a way to stop this?
 
Back
Top Bottom