通过通过分别配置 PagerStyle 和 PagerSettings 属性,自定义页导航的样式和设置

 关键代码段:

         LastPageImageUrl="~/Images/Last.gif" NextPageImageUrl="~/Images/Next.gif" PreviousPageImageUrl="~/Images/Prev.gif" />
     

全部代码:

<%@ Page Language="C#" %>


  Sorting Data Using GridView


 


          AutoGenerateColumns="False">
            LastPageImageUrl="~/Images/Last.gif" NextPageImageUrl="~/Images/Next.gif" PreviousPageImageUrl="~/Images/Prev.gif" />
     

     
       
       
       
       
       
       
       
       
       
     

   
          SelectCommand="SELECT [au_id], [au_lname], [au_fname], [phone], [address], [city], [state], [zip], [contract] FROM [authors]"
      ConnectionString="<%$ ConnectionStrings:Pubs %>" />
 


 

Web.config代码:

?xml version="1.0"?>

 
  
   

  
  
 
   
      
 
       
           
               
                   
               

           

       

       

结果:

ID Last Name First Name Phone Address City State Zip Code Contract
172-32-1176 White Johnson 408 496-7223 10932 Bigge Rd. Menlo Park CA 94025
213-46-8915 Green Marjorie 415 986-7020 309 63rd St. #411 Oakland CA 94618
238-95-7766 Carson Cheryl 415 548-7723 589 Darwin Ln. Berkeley CA 94705
267-41-2394 O'Leary Michael 408 286-2428 22 Cleveland Av. #14 San Jose CA 95128
274-80-9391 Straight Dean 415 834-2919 5420 College Av. Oakland CA 94609
341-22-1782 Smith Meander 913 843-0462 10 Mississippi Dr. Lawrence KS 66044
409-56-7008 Bennet Abraham 415 658-9932 6223 Bateman St. Berkeley CA 94705
427-17-2319 Dull Ann 415 836-7128 3410 Blonde St. Palo Alto CA 94301
472-27-2349 Gringlesby Burt 707 938-6445 PO Box 792 Covelo CA 95428
486-29-1786 Locksley Charlene 415 585-4620 18 Broadway Av. San Francisco CA 94130

 

你可能感兴趣的:(asp,server,compilation,caching,database,html)