I'm also having a problem with a Repeater nested within an UpdatePanel. This doesn't occur everytime, but sometimes one or more TextBoxes within my Repeater have trouble getting focus. The user cannot click in them to give them focus, the user must tab to them. Typically, it is one or two of the inner TextBoxes....very rarely the first or last TextBox.
I've posted to a forum about this before (can't remember which forum), someone had suggested that I remove the AlternateItemTemplate and only use an ItemTemplate. I made this change, however, the problem persists.
Here is a code snippet:
1 <ajax:UpdatePanel ID="MainUpdatePanel" runat="server" ChildrenAsTriggers="true" UpdateMode="Always">
2 <ContentTemplate>
3 <table class="OuterTable">
4 <tr><td><uc1:PageTitle ID="TestingPageTitle" runat="server" /></td></tr>
5 <tr><td> </td></tr>
6 <tr><td><asp:Label ID="FailureMsg" runat="server" CssClass="Error"></asp:Label></td></tr>
7 <tr><td><asp:Panel ID="ErrorPanel" runat="server">
8 [omitted: not related to this issue]
9 </asp:Panel>
10 <asp:Panel ID="CredentialsPanel" runat="server" Width="100%">
11 [omitted: not related to this issue]
12 </asp:Panel>
13 <asp:Panel ID="InstructionPanel" runat="server" Width="100%">
14 [omitted: not related to this issue]
15 </asp:Panel>
16 <asp:Panel ID="QuizPanel" runat="server" Width="100%">
17 <table class="InnerTable">
18 <tr><td><asp:ValidationSummary ID="QuizValidationSummary" runat="server" CssClass="ValidationSummary" ValidationGroup="ResultValidation" /><asp:Label ID="Message" runat="server" CssClass="Error"></asp:Label></td></tr>
19 <tr><td> </td></tr>
20 <tr><td><span class="Subtitle">Instruction:</span> <asp:Label ID="ViewInstruction" runat="server"></asp:Label></td></tr>
21 <tr><td><hr /></td></tr>
22 <tr><td><asp:Repeater ID="Questions" runat="server">
23 <ItemTemplate>
24 <table border="0" cellpadding="3" cellspacing="1" width="800">
25 <tr><td class="Subtitle" style="text-align: left; vertical-align: top; width: 250px;"><asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Question") %>'></asp:Label></td>
26 <td style="text-align: left; vertical-align: top; width: 550px;"><asp:TextBox ID="TextBox2" runat="server" Enabled="true" Width="200"></asp:TextBox></td></tr>
27 </table>
28 </ItemTemplate>
29 </asp:Repeater></td></tr>
30 <tr><td style="text-align: right"><asp:Button ID="SubmitBtn" runat="server" Text="Continue" CausesValidation="True" ValidationGroup="ResultValidation" OnClick="SubmitBtn_Click" /></td></tr>
31 </table>
32 </asp:Panel>
33 <asp:Panel ID="ServerSideResultPanel" runat="server" Width="100%">
34 [omitted: not related to this issue]
35 </asp:Panel></td></tr>
36 </table>
37 </ContentTemplate>
38 </ajax:UpdatePanel>
Any advice would be greatly appreciated. Thank you in advance for your help.