![]() |
|
|
#1 |
|
Guest
Posts: n/a
|
Can not get value of textbox in footertemplate of repeater
Hi, everybody
I have a problem. I add a textbox in footer of repeater. And I can not get the inputted value. Here is the repeater script. <asp:Repeater ID="rNewsInfo" runat="server" Visible="true" OnItemCreated = "rNewsInfo_ItemCreated"> <ItemTemplate> .... </ItemTemplate> <FooterTemplate> <asp:TextBox ID="pagenav" runat="server" style="width:60px" Text=""></ asp:TextBox> </FooterTemplate> </asp:Repeater> here is the code behind by Csharp protected void rNewsInfo_ItemCreated(Object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Footer) { TextBox pagenav = e.Item.FindControl("pagenav") as TextBox; } } the textbox value is always empty after I input some number. Can anyone know how to do with it? Any help will be appreciated. Thanks |
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|