TechTalkz.com Logo

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Tech Support Archives > Programing Languages > C#(C Sharp)

Notices

Reply
 
Thread Tools Display Modes
Old 15-12-2007, 12:18 PM   #1
Sun
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
  Reply With Quote
Reply

Thread Tools
Display Modes


Google
 


All times are GMT +5.5. The time now is 06:35 AM.


vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO
Copyright © 2005-2008, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional