01 | < asp:GridView ID = "gv" Runat = "Server" DataSourceID = "SqlDataSource1" AutoGenerateColumns = "false" |
02 | BorderColor = "#000080" |
03 | BorderWidth = "2px" |
04 | HorizontalAlign = "Center" |
05 | Width = "90%" AllowPaging = true BackColor = Gray PagerSettings-Position = TopAndBottom > |
06 | < Columns > |
07 | < asp:BoundField HeaderText = "localityID" DataField = "localityid" /> |
08 | < asp:BoundField HeaderText = "localityName" DataField = "localityname" /> |
09 |
10 |
|
11 |
12 | < PagerTemplate > |
13 | < asp:LinkButton CommandName = "Page" CommandArgument = "First" |
14 | ID = "LinkButton1" runat = "server" Style = "color: white" > |
15 | « First |
16 | < asp:LinkButton CommandName = "Page" CommandArgument = "Prev" |
17 | ID = "LinkButton2" runat = "server" Style = "color: white" > |
18 | < Prev
|
19 | [Records <%= gv.PageIndex * gv.PageSize%>-<%= gv.PageIndex * gv.PageSize + gv.PageSize - 1%>] |
20 | < asp:LinkButton CommandName = "Page" CommandArgument = "Next" |
21 | ID = "LinkButton3" runat = "server" Style = "color: white" > |
22 | Next > |
23 | < asp:LinkButton CommandName = "Page" CommandArgument = "Last" |
24 | ID = "LinkButton4" runat = "server" Style = "color: white" > |
25 | Last » |
26 |
|
27 |
|
28 | < asp:SqlDataSource ID = "SqlDataSource1" runat = "server" SelectCommand = "SELECT * FROM locality" |
29 | ConnectionString="<%$ ConnectionStrings:ConnectionString %>" /> |
Комментариев нет:
Отправить комментарий