<asp:Menu ID="menuNumeric" runat="server" CssClass="pagerFont" Orientation="Horizontal" OnMenuItemClick="menuNumeric_Click" Visible="true">
//code file protected void grVwProductionOrderSearch_OnDataBound(object sender, EventArgs e) { Menu menuNumeric = (Menu)PagerPO.FindControl("menuNumeric"); menuNumeric.Items.Clear(); int startIndex = ((PagerCurrentIndex / PagerDisplayCount) * PagerDisplayCount) + 1; int maxIndex = startIndex + PagerDisplayCount; for (int i = startIndex; i < maxIndex; i++) { MenuItem item = new MenuItem(); item.Text = " " + i.ToString() + " "; item.Value = i.ToString(); if (grVwProductionOrderSearch.PageIndex == i) { item.Selected = true; PagerCurrentIndex = i; } menuNumeric.Items.Add(item); } }
span
class
margin-left
margin-right
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)