Atlas UpdatePanel

  • Thread starter ccshine via DotNetMonster.com
  • Start date
C

ccshine via DotNetMonster.com

I have several textboxes, a gridview and an image in a panel that need to be
updated based upon info entered into a textbox. Everything works like a
champ when I don't use the Atlas UpdatePanel, but I can't seem to figure out
how to get even one section to work. Initially I had all 3 areas wrapped
into the UpdatePanel and now I'm just trying to update some textboxes with
info returned from the server. Neither one works. I tried the
PostBackTrigger and AsynchPostBackTrigger. Can anyone tell me what I'm doing
wrong?


<asp:UpdatePanel ID="up" runat="server"
UpdateMode="Conditional" >
<ContentTemplate>

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="width:125px" align="right"
class="smalltext"><asp:Label ID="lblAccount" AssociatedControlID="txtAccount"
runat="server">Account #:&nbsp;&nbsp;</asp:Label></td>
<td class="smalltext" style="width:175px">
<asp:TextBox ID="txtAccount"
OnTextChanged="txtAccount_TextChanged" MaxLength="16" runat="server"
CssClass="textbox"></asp:TextBox>
<img src="Images/merge.gif" style="vertical-align:
text-bottom" alt="Grab customer info from CSG" onclick="getCustomerInfo()" />

</td>
<td rowspan="2" style="width:70px">
<asp:panel runat="server"
ID="pnlPrevEntries">
<a href="javascript: void(0)"
onclick="overlay('caution', 'PrevEntries', 'right')"><img src='Images/caution.
png' id='caution' /></a>&nbsp;
</asp:panel>
</td>
<td style="text-align:center" valign="top"
class="smalltext">
said:
</span><span id="extension" style="display:none"><%=Session("extension") %
</span><br /><%=Session("Role")%>
</td>
</tr>
<tr>
<td align="right" class="smalltext"><asp:Label
ID="lblName" AssociatedControlID="txtName" runat="server">Name (Last, First):
&nbsp;&nbsp;</asp:Label></td>
<td>
<asp:TextBox ID="txtName" MaxLength="100"
runat="server" CssClass="textbox"></asp:TextBox><!--<input type="text"
ID="txtName" MaxLength="100" Class="textbox">-->
<div id="customerInfo">
<asp:TextBox id="txtAddr1" runat="server"></asp:
TextBox>
<asp:TextBox id="txtAddr2" runat="server"></asp:
TextBox>
<asp:TextBox id="txtCity" runat="server"></asp:
TextBox>
<asp:TextBox id="txtState" runat="server"></asp:
TextBox>
<asp:TextBox id="txtZip" runat="server"></asp:
TextBox>
<asp:TextBox id="txtPhone" runat="server"></asp:
TextBox>
<asp:TextBox id="txtRetentionId"
runat="server"></asp:TextBox>
<asp:TextBox ID="txtLobChanged"
runat="server"></asp:TextBox>
<asp:TextBox ID="txtComments"
runat="server"></asp:TextBox>
<asp:TextBox ID="txtPkgID" runat="server"></asp:
TextBox>
<asp:TextBox ID="txtReasons" runat="server"></asp:
TextBox>
<asp:TextBox ID="txtUncontrollable"
runat="server"></asp:TextBox>
<asp:TextBox ID="txtTechProbs"
runat="server"></asp:TextBox>
<asp:TextBox ID="txtComps" runat="server"></asp:
TextBox>
</div>
</td>
</tr>
</table>
<!-- GridView for previous entries -->
<div id="PrevEntries">
<asp:GridView ID="grdPrevEntries" runat="server"
DataKeyNames="retentionId"
AutoGenerateColumns="False"
CssClass="smGridview"
GridLines="both"
CellPadding="3">
<Columns>
<asp:TemplateField >
<ItemTemplate>
<a href="#" id="<%# Eval("retentionId") %>"
onclick="selectPrevEntry('<%# Eval("retentionId") %>')">SELECT</a>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="tDate" HeaderText="DATE"
DataFormatString="{0:MM/dd/yy}" HtmlEncode="False" />
<asp:BoundField DataField="lob" HeaderText="LOB" />
<asp:BoundField DataField="subreq" HeaderText="SUBREQ"
ControlStyle-CssClass="hidden" ItemStyle-CssClass="hidden" HeaderStyle-
CssClass="hidden" FooterStyle-CssClass="hidden" />
<asp:BoundField DataField="reason" ControlStyle-CssClass="hidden"
ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-
CssClass="hidden" />
<asp:BoundField DataField="inPkg" ControlStyle-CssClass="hidden"
ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-
CssClass="hidden" />
<asp:BoundField DataField="outPkg" ControlStyle-CssClass="hidden"
ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-
CssClass="hidden" />
<asp:BoundField DataField="offer" ControlStyle-CssClass="hidden"
ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-
CssClass="hidden" />
<asp:BoundField DataField="comments" ControlStyle-
CssClass="hidden" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden"
FooterStyle-CssClass="hidden" />
</Columns>

</asp:GridView>
<p style="text-align:right; margin:20px 3px 3px 0"><a href=""#"
onclick="overlayclose('PrevEntries');return false"> CLOSE</a></p>
</div> </ContentTemplate>
<Triggers><asp:AsyncPostBackTrigger
<asp:postBackTrigger ControlID="txtAccount" />

</Triggers>

</asp:UpdatePanel>
<asp:UpdateProgress runat="server" ID="prgPrevEntries">
<ProgressTemplate>
<img src="Images/xsmloading.gif" alt="Loading" />
</ProgressTemplate>
</asp:UpdateProgress>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,044
Messages
2,570,388
Members
47,052
Latest member
ketan

Latest Threads

Top