Advertisement

10.07.2008 at 05:33AM PDT, ID: 23793433 | Points: 500
[x]
Attachment Details

Cannot stop a Reapeater from AutoPostBack in an UpdatePanel

Asked by JasonBarrett in Asynchronous Javascript and XML (AJAX), Programming for ASP.NET

Tags: ,

Hi,
I have a repeater with several post back controls contained in it.  Each of the controls calling a postback should be done asyncronously and not do a full postback.  I have the main peices added to my page, ScriptManager and then UpdatePanel and inside the contenttemplate of the updatepanel i have my repeater.  I've tried vairous parameters for the update panel as well - childrenastriggers, updatemode, etc.  Nothing seems to stop the postback from happeneing.  I would LOVE to get this working so that the page don't do a full a postback when a post back is called.  I've attached some code below.

thanksStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
<table width="100%" border="0" cellpadding="0" cellspacing="3" bordercolorlight="#000000" style="border-width:1px; border-collapse:collapse; border-style:solid;">
						
<asp:UpdatePanel ID="upRptSplit" runat="server" updateMode="Conditional" ChildrenAsTriggers="true" >
<ContentTemplate>
 
<asp:Repeater ID="rpt_split" runat="server">
 <HeaderTemplate>
      <tr bgcolor="GhostWhite" >						  						      
						          <td width="15%" align="center"><asp:Label ID="lbl_split_value" Text="Split Value" Runat="server" CssClass="lbl_head" /></td>
						          <td width="35%" align="center"><asp:Label ID="lbl_split_div" Text="Division Code" Runat="server" CssClass="lbl_head" /></td>						  
						          <td width="35%" align="center"><asp:Label ID="lbl_split_gl" text="GL Code" Runat="server" CssClass="lbl_head" /></td>						  						  
						          <td width="15%" align="center"><asp:Label ID="lbl_split_amt" text="Split Amt" Runat="server" CssClass="lbl_head" /></td>						  						  
						         </tr>					
						     </HeaderTemplate>
						     <ItemTemplate>
						        <tr>						  
    						     <td align="center"><asp:TextBox ID="tb_split_val" Width="90%" AutoPostBack="true" OnTextChanged="tb_split_val_OnTextChanged" Runat="server" cssClass="tb" /></td>
						         <td align="center">
						            <asp:TextBox ID="tb_SplitBindId" Runat="server" Text='<%#Container.DataItem("Id") %>' Style="display:none;" />
						            <asp:TextBox ID="tb_SplitBindSort" Runat="server" Text='<%#Container.DataItem("Sort") %>' Style="display:none;" />
						            <asp:TextBox ID="tb_SplittBindSplitGroupId" Runat="server" Text='<%#Container.DataItem("SplitGroupId") %>' Style="display:none;" />
						            <asp:TextBox ID="tb_split_div" Runat="server" Text='<%#Container.DataItem("DivCode") %>' OnTextChanged="tb_DivCode_TextChanged" AutoPostBack="true" Width="90%" ReadOnly="false" cssClass="tb" />
						            <cc1:AutoCompleteExtender 
                                        runat="server"                                                         
                                        ID="ace_split_div" 
                                        TargetControlID="tb_split_div"
                                        ServiceMethod="GetDivisionCodes"
                                        ServicePath="AutoComplete.asmx"
                                        MinimumPrefixLength="1" 
                                        CompletionSetCount="1"                                                        
                                        CompletionInterval="1"                                                                     
                                        enablecaching="false"                                                                                                                                                                                                               
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"                                                        
                                        DelimiterCharacters=";, :">                                                        
                                    </cc1:AutoCompleteExtender>
						         </td>						    
						         <td align="center">
						            <asp:TextBox ID="tb_split_gl" Width="90%" Text='<%#Container.DataItem("GLCode") %>' OnTextChanged="tb_glcode_TextChanged" AutoPostBack="true" Runat="server" ReadOnly="false" cssClass="tb" />
						            <cc1:AutoCompleteExtender 
                                        runat="server"                                                         
                                        ID="ace_new_glcode" 
                                        TargetControlID="tb_split_gl"
                                        ServiceMethod="GetGLCodes"
                                        ServicePath="AutoComplete.asmx"
                                        MinimumPrefixLength="1" 
                                        CompletionSetCount="1"                                                        
                                        CompletionInterval="1"                                                                     
                                        enablecaching="false"                                                                                                                                                                                                               
                                        CompletionListCssClass="autocomplete_completionListElement" 
                                        CompletionListItemCssClass="autocomplete_listItem" 
                                        CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem"                                                        
                                        DelimiterCharacters=";, :">                                                        
                                    </cc1:AutoCompleteExtender>
						        </td>				
						        <td><asp:TextBox ID="tb_split_amt" Width="98%" Text='<%#Container.DataItem("SplitAmt") %>' Runat="server" ReadOnly="true" cssClass="tb" style="text-align:right;" /></td>		    
						      </tr>
						     </ItemTemplate>
						    </asp:Repeater>	
						  </ContentTemplate>					 			 		
						</asp:UpdatePanel>				 
						</table>
[+][-]10.07.2008 at 05:44AM PDT, ID: 22658724

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 06:29AM PDT, ID: 22659158

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 06:45AM PDT, ID: 22659300

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 07:11AM PDT, ID: 22659528

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.07.2008 at 07:29AM PDT, ID: 22659731

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.08.2008 at 12:44PM PDT, ID: 22672516

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628