473,796 Members | 2,703 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Atlas Update Panel

4 New Member
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 AsynchPostBackT rigger. 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 2301
AricC
1,892 Recognized Expert Top Contributor
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
ccshine
4 New Member
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 Recognized Expert Top Contributor
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 Recognized Expert Specialist
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
1341
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 the ASP.NET 2.0 Callback? I used both of them:- Atlas was easy to use, just put the controls you wish in an UpdatePanel and all that, however the update panel still flickers if you put lots
4
3922
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 these two things, the page flashes everytime my textbox changes and the panel is updated. If I just use a regular textbox along with the Master Page, it works fine. If I use by user control without the Master Pages, it works fine. When I...
1
1385
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 and then presses the back button the page will reflect the last update that was done under atlas. More details I just got my datagrid working with Atlas. I'm using the update panel. It's great but I immediately see an issue that I'm hoping...
3
1272
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 atlas come into play if i have dynamic stuff in both the header and the body. i tried putting an update panel in each of the sections but it didn't like that (and that's pretty much the extent of my knowledge for atlas).
4
1318
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 change the tab image and accordingly set a panel. Now, these panels have buttons and all, ajax is working fine with them. But only when I click on the image panel, sometimes it get stucked, it keeps on showing me the Progress template (which is...
1
3529
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 javascript, nothing really having to do with ASP.NET... I'm attempting to put together an application that consists of several GridView controls each bound to some xml data. Each table exists in its own update panel. The two effects I'm going for are:
2
1242
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 use atlas. What that could be? I tried to create and define triggers in page_init event but still the same. I have to remove atlas from all pages because my users are complaining. And I can't even test this behaviour because on the beggining it...
2
1735
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, but didn't go into much detail. From what I read/gathered, I came up with this code: <asp:SqlDataSource ID="dsCategories" runat="server" ConnectionString="<%$ ConnectionStrings:cstrDataSource %>" SelectCommand="SELECT , FROM ORDER BY ">...
6
1146
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 simplistic of examples) and I get an alert of 'unspecified error'. Sweet. So, I add an update panel to an existing page and wire it up to a button. Click the button and get --------------------------- Microsoft Internet Explorer...
0
9685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9531
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10237
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10018
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.