473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Atlas Update Panel

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?

Expand|Select|Wrap|Line Numbers
  1.                <asp:UpdatePanel ID="up" runat="server"
  2. UpdateMode="Conditional" >
  3.            <ContentTemplate>
  4.  
  5.                <table cellpadding="0" cellspacing="0" border="0">
  6.                    <tr>
  7.                        <td style="width:125px" align="right"
  8. class="smalltext"><asp:Label ID="lblAccount" AssociatedControlID="txtAccount"
  9. runat="server">Account #:&nbsp;&nbsp;</asp:Label></td>
  10.                        <td class="smalltext" style="width:175px">
  11.                           <asp:TextBox ID="txtAccount"
  12. OnTextChanged="txtAccount_TextChanged" MaxLength="16" runat="server"
  13. CssClass="textbox"></asp:TextBox>
  14.                            <img src="Images/merge.gif" style="vertical-align:
  15. text-bottom" alt="Grab customer info from CSG" onclick="getCustomerInfo()" />
  16.  
  17.                        </td>
  18.                        <td rowspan="2" style="width:70px">
  19.                                <asp:Panel runat="server"
  20. ID="pnlPrevEntries">
  21.                                        <a href="javascript: void(0)"
  22. onclick="overlay('caution', 'PrevEntries', 'right')"><img src='Images/caution.
  23. png' id='caution' /></a>&nbsp;
  24.                                </asp:Panel>
  25.                         </td>
  26.                        <td style="text-align:center" valign="top"
  27. class="smalltext">
  28.                            <span id="Fullname"><%=Session("Fullname")%
  29.  
  30. ></span><span id="extension" style="display:none"><%=Session("extension") %
  31. ></span><br /><%=Session("Role")%>
  32.                        </td>
  33.                    </tr>
  34.                    <tr>
  35.                        <td align="right" class="smalltext"><asp:Label
  36. ID="lblName" AssociatedControlID="txtName" runat="server">Name (Last, First):
  37. &nbsp;&nbsp;</asp:Label></td>
  38.                        <td>
  39.                            <asp:TextBox ID="txtName" MaxLength="100"
  40. runat="server" CssClass="textbox"></asp:TextBox><!--<input type="text"
  41. ID="txtName" MaxLength="100" Class="textbox">-->
  42.                            <div id="customerInfo">
  43.                            <asp:TextBox id="txtAddr1" runat="server"></asp:
  44. TextBox>
  45.                            <asp:TextBox id="txtAddr2" runat="server"></asp:
  46. TextBox>
  47.                            <asp:TextBox id="txtCity" runat="server"></asp:
  48. TextBox>
  49.                            <asp:TextBox id="txtState" runat="server"></asp:
  50. TextBox>
  51.                            <asp:TextBox id="txtZip" runat="server"></asp:
  52. TextBox>
  53.                            <asp:TextBox id="txtPhone" runat="server"></asp:
  54. TextBox>
  55.                            <asp:TextBox id="txtRetentionId"
  56. runat="server"></asp:TextBox>
  57.                            <asp:TextBox ID="txtLobChanged"
  58. runat="server"></asp:TextBox>
  59.                            <asp:TextBox ID="txtComments"
  60. runat="server"></asp:TextBox>
  61.                            <asp:TextBox ID="txtPkgID" runat="server"></asp:
  62. TextBox>
  63.                            <asp:TextBox ID="txtReasons" runat="server"></asp:
  64. TextBox>
  65.                            <asp:TextBox ID="txtUncontrollable"
  66. runat="server"></asp:TextBox>
  67.                            <asp:TextBox ID="txtTechProbs"
  68. runat="server"></asp:TextBox>
  69.                            <asp:TextBox ID="txtComps" runat="server"></asp:
  70. TextBox>
  71.                            </div>
  72.                        </td>
  73.                    </tr>
  74.                </table>
  75.        <!-- GridView for previous entries -->
  76.        <div id="PrevEntries">
  77.        <asp:GridView ID="grdPrevEntries" runat="server"   
  78.            DataKeyNames="retentionId"  
  79.            AutoGenerateColumns="False" 
  80.            CssClass="smGridview" 
  81.            GridLines="both"
  82.            CellPadding="3">
  83.        <Columns>
  84.            <asp:TemplateField >
  85.                <ItemTemplate>
  86.                    <a href="#" id="<%# Eval("retentionId") %>"
  87. onclick="selectPrevEntry('<%# Eval("retentionId") %>')">SELECT</a>
  88.                </ItemTemplate>
  89.            </asp:TemplateField>
  90.            <asp:BoundField DataField="tDate" HeaderText="DATE"
  91. DataFormatString="{0:MM/dd/yy}" HtmlEncode="False"  />
  92.            <asp:BoundField DataField="lob" HeaderText="LOB" />
  93.            <asp:BoundField DataField="subreq" HeaderText="SUBREQ"
  94. ControlStyle-CssClass="hidden" ItemStyle-CssClass="hidden" HeaderStyle-
  95. CssClass="hidden" FooterStyle-CssClass="hidden" />
  96.            <asp:BoundField DataField="reason" ControlStyle-CssClass="hidden"
  97. ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-
  98. CssClass="hidden" />
  99.            <asp:BoundField DataField="inPkg" ControlStyle-CssClass="hidden"
  100. ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-
  101. CssClass="hidden" />
  102.            <asp:BoundField DataField="outPkg" ControlStyle-CssClass="hidden"
  103. ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-
  104. CssClass="hidden" />
  105.            <asp:BoundField DataField="offer" ControlStyle-CssClass="hidden"
  106. ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden" FooterStyle-
  107. CssClass="hidden" />
  108.            <asp:BoundField DataField="comments" ControlStyle-
  109. CssClass="hidden" ItemStyle-CssClass="hidden" HeaderStyle-CssClass="hidden"
  110. FooterStyle-CssClass="hidden" />
  111.        </Columns>
  112.  
  113.    </asp:GridView>
  114.    <p style="text-align:right; margin:20px 3px 3px 0"><a href=""#"
  115. onclick="overlayclose('PrevEntries');return false"> CLOSE</a></p>
  116.    </div>                </ContentTemplate>
  117. <Triggers
  118. <asp:PostBackTrigger ControlID="txtAccount"  />
  119.  
  120.   </Triggers>
  121.  
  122.                </asp:UpdatePanel>
  123.                <asp:UpdateProgress runat="server" ID="prgPrevEntries">
  124.                    <ProgressTemplate>
  125.                        <img src="Images/xsmloading.gif" alt="Loading" />
  126.                    </ProgressTemplate>
  127.                </asp:UpdateProgress>
Mar 12 '07 #1
4 2283
AricC
1,892 Expert 1GB
I think this is more of an ASP.Net issue I'll move your thread to that forum. If you think it is Javascript let me know I'll move it back.


Aric
Mar 12 '07 #2
I think this is more of an ASP.Net issue I'll move your thread to that forum. If you think it is Javascript let me know I'll move it back.


Aric
I just posted it here based on the forum title - Javascript/Ajax.
Mar 12 '07 #3
AricC
1,892 Expert 1GB
I just posted it here based on the forum title - Javascript/Ajax.
If you like I can move it back to the Javascript forum just seemed like more of a .Net question to me.

Let me know,
Aric
Mar 12 '07 #4
kenobewan
4,871 Expert 4TB
I believe that it may be to do with the updatemode. Here is an overview that may help:
UpdatePanel Control Overview
Mar 13 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Varangian | last post by:
I'm not sure if there was already a post on this.. if so I apologise My question is what difference is there between Atlas and ASP.NET callback and why should people go on Atlas rather than on...
4
by: Diane Yocom | last post by:
I'm trying to use an Atlas UpdatePanel to just update a label when a text box has changed. The problem is that my textbox is in a user control and I'm using Master Pages - with the combination of...
1
by: benthanger | last post by:
This is just a how to question that I'm hoping someone can answer. Is there anyway to update the page cashe after performing a partial page update using atlas so that if someone leaves the page...
3
by: rodchar | last post by:
hey all, i have a master page that consists of a header section and main body (in other words 1 column, 2row table). i placed a contentplaceholder in the header and in the body. so how does...
4
by: omer.mush | last post by:
Hi, I am using ASP.Net 2.0 along with C# and Atlas. I have some image panels alongwith asp:panel controls. I am using image panels as tabs, when user clicks a specific portion of the image, I...
1
by: jmdolinger | last post by:
Hi all, I'm a newbie to Atlas (and recently ASP.NET) after coming from a long Java background, also have done quite a bit with an Ajax.NET/ASP.NET 1.1 project, but it was basically all...
2
by: simonZ | last post by:
I have atlas update panel which works perfect for couple of hours. Then it stops render part of page when trigger fires submit. Just render nothing. And that happens on all of my pages, where I...
2
by: Nobody | last post by:
I have an aspx page where I have a repeater control that repeats a asp:LinkButton. When I click on one of the links, I get a post back, and the page flashes. A friend told me to look into ATLAS/AJAX,...
6
by: SlashDrew | last post by:
So I converted my old 1.1 project to 2.0 using the addon that allows for deploying projects the 'old' way. I tried to add an update panel on a new page with a button and a label (the most...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.