<asp:Repeater ID="rptPager" runat="server" > <ItemTemplate> <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>' Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed" > </asp:LinkButton> </ItemTemplate> </asp:Repeater>
protected void Page_Changed(object sender, EventArgs e) { pageIndex = int.Parse((sender as LinkButton).CommandArgument); //here i got the corresponding value //if i click on 1 it should be 1 //if i click on 2 it should be 2 }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)