Solved

ASP Update Panel Problem

Posted on 2010-11-16
1
576 Views
Last Modified: 2012-05-10
Hi,
i have a Website that uses update panels. For the last couple of days the site was working exactly how it was supposed to.
The post back took place without redrawing the site. I added a different site to the solution, which added the Ajax components to the site.
After i added the second site, the Update panel seems  not to work any longer. The page refreshes after every postback.
Is there a difference in the Ajax package?

<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="FaultReset.aspx.cs" Inherits="FaultReset" %>


<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="True" 
        RenderMode="Block" UpdateMode="Always">
    <ContentTemplate>
    
    

    <table width="100%">
        <colgroup><col width="33%" /> <col width="34%" /><col width="33" /></colgroup>
        <tr>
        <td align="left" valign="middle">

        <asp:Panel ID="pnlPnlln1" runat="server" Height="200px" HorizontalAlign="Center" 
            Width="250px" BorderStyle="Groove" CssClass="Panel1">
            <strong><span style="font-size: medium">PannelLine</span></strong><br />
            <strong><span class="linestation">Station 10-22</span></strong><br />
            <br />
            <asp:Button ID="btnPnlln1" runat="server" Text="Fault Reset" Font-Bold="True" 
                Font-Size="Large" Height="75px" style="text-align: center" Width="150px" 
                onclick="btnPnlln1_Click" UseSubmitBehavior="False" 
                OnClientClick="this.disabled = true;this.style.borderColor = 'green';this.value = 'Submitting...';;__doPostBack('btnPnlln1','')" BorderColor="Red" />
            <br />
            <br />
            <asp:Label ID="lblPnlln1_Time" runat="server" CssClass="TimeLabel"></asp:Label><br />
            <asp:Label ID="lblPnlln1_stat" runat="server" CssClass="PLCLabel"></asp:Label>
        </asp:Panel>
        </td>

        <td align="center"> 
        <asp:Panel ID="pnlPnlln2" runat="server" Height="200px" HorizontalAlign="Center" 
            Width="250px" BorderStyle="Groove" CssClass="Panel1">
            <strong><span class="linename">PannelLine</span></strong><br />
            <strong><span class="linestation">Station 23-36</span></strong><br />
            <br />
            <asp:Button ID="bntPnlln2" runat="server" Text="Fault Reset" Font-Bold="True" 
                Font-Size="Large" Height="75px" style="text-align: center" Width="150px"
                onclick="btnPnlln2_Click" OnClientClick="this.disabled = true;this.style.borderColor = 'green';this.value = 'Submitting...';__doPostBack('btnPnlln2','')" UseSubmitBehavior="False" BorderColor="Red" />
            <br />
            <br />
            <asp:Label ID="lblPnlln2_Time" runat="server" CssClass="TimeLabel"></asp:Label><br />
            <asp:Label ID="lblPnlln2_stat" runat="server" CssClass="PLCLabel"></asp:Label>
        </asp:Panel>

        </td>

        <td align="right" dir="rtl"> </td>
        </tr>

        <tr>
        <td align="left" valign="middle">
        <asp:Panel ID="pnlCoupler" runat="server" Height="200px" HorizontalAlign="Center" 
            Width="250px" BorderStyle="Groove" CssClass="Panel1">
            <strong><span class="linename">Decoupler</span></strong><br />
            <strong><span class="linestation">Station 1&amp;6</span></strong><br />
            <br />
            <asp:Button ID="btnCoupler" runat="server" Text="Fault Reset" Font-Bold="True" 
                Font-Size="Large" Height="75px" style="text-align: center" Width="150px"
                onclick="btnCoupler_Click" UseSubmitBehavior="False" 
                OnClientClick="this.disabled = true; this.style.borderColor = 'green';this.value = 'Submitting...';__doPostBack('btnCoupler','')" 
                BorderColor="Red" />
            <br />
            <br />
            <asp:Label ID="lblCoupler_Time" runat="server" CssClass="TimeLabel"></asp:Label><br />
            <asp:Label ID="lblCoupler_stat" runat="server" CssClass="PLCLabel"></asp:Label>
        </asp:Panel>
        </td>

        <td align="center"> 
        <asp:Panel ID="pnlFlrpn" runat="server" Height="200px" HorizontalAlign="Center" 
            Width="250px" BorderStyle="Groove" CssClass="Panel1">
            <strong><span class="linename">Floorpan</span></strong><br />
            <strong><span class="linestation">Robot 34</span></strong><br />
            <br />
            <asp:Button ID="bntFlrpn" runat="server" Text="Fault Reset" Font-Bold="True" 
                Font-Size="Large" Height="75px" style="text-align: center" Width="150px"
                onclick="btnFlrpn_Click" UseSubmitBehavior="False" 
                OnClientClick="this.disabled = true; this.style.borderColor = 'green';this.value = 'Submitting...';__doPostBack('btnFlrpn','')" 
                BorderColor="Red" />
            <br />
            <br />
            <asp:Label ID="lblFlrpn_Time" runat="server" CssClass="TimeLabel"></asp:Label><br />
            <asp:Label ID="lblFlrpn_stat" runat="server" CssClass="PLCLabel"></asp:Label>
        </asp:Panel>

        </td>

        <td align="right" dir="rtl">
        <asp:Panel ID="pnlXbuf1" runat="server" Height="200px" HorizontalAlign="Center" 
            Width="250px" BorderStyle="Groove">
            <strong><span class="linename">CrossXter</span></strong><br />
            <strong><span class="linestation">Station 1&amp;3</span></strong><br />
            <br />
            <asp:Button ID="btnXbuf1" runat="server" Text="Fault Reset" Font-Bold="True" 
                Font-Size="Large" Height="75px" style="text-align: center" Width="150px" 
                onclick="btnXbuf1_Click" UseSubmitBehavior="False" 
                OnClientClick="this.disabled = true;this.style.borderColor = 'green';this.value = 'Submitting...';__doPostBack('btnXbuf1','')" 
                BorderColor="Red" />
            <br />
            <br />
            <asp:Label ID="lblXbuf1_Time" runat="server" CssClass="TimeLabel"></asp:Label><br />
            <asp:Label ID="lblXbuf1_stat" runat="server" CssClass="PLCLabel"></asp:Label>
        </asp:Panel>
        </td>
        </tr>

                <tr>
        <td align="left" valign="middle">

        <asp:Panel ID="pnlWhtbs2" runat="server" Height="200px" HorizontalAlign="Center" 
            Width="250px" BorderStyle="Groove" CssClass="Panel1">
            <strong><span class="linename">WHTBS(B19)</span></strong><br />
            <strong><span class="linestation">Station 23</span></strong><br />
            <br />
            <asp:Button ID="btnWhtbs2" runat="server" Text="Fault Reset" Font-Bold="True" 
                Font-Size="Large" Height="75px" style="text-align: center" Width="150px" 
                onclick="btnWhtbs2_Click" UseSubmitBehavior="False" 
                OnClientClick="this.disabled = true;this.style.borderColor = 'green';this.value = 'Submitting...';__doPostBack('btnWhtbs2','')" 
                BorderColor="Red" />
            <br />
            <br />
            <asp:Label ID="lblWhtbs2_Time" runat="server" CssClass="TimeLabel"></asp:Label><br />
            <asp:Label ID="lblWhtbs2_stat" runat="server" CssClass="PLCLabel"></asp:Label>
        </asp:Panel>
        </td>

        <td align="center">        
        <asp:Panel ID="pnlLadder" runat="server" Height="200px" HorizontalAlign="Center" 
            Width="250px" BorderStyle="Groove">
            <strong><span class="linename">Ladder</span></strong><br />
            <strong><span class="linestation">Station 1</span></strong><br />
            <br />
            <asp:Button ID="btnLadder" runat="server" Text="Fault Reset" Font-Bold="True" 
                Font-Size="Large" Height="75px" style="text-align: center" Width="150px" 
                onclick="btnLadder_Click" UseSubmitBehavior="False" 
                OnClientClick="this.disabled = true;this.style.borderColor = 'green';this.value = 'Submitting...';__doPostBack('btnLadder','')" 
                BorderColor="Red" />
            <br />
            <br />
            <asp:Label ID="lblLadder_Time" runat="server" CssClass="TimeLabel"></asp:Label><br />
            <asp:Label ID="lblLadder_stat" runat="server" CssClass="PLCLabel"></asp:Label>
        </asp:Panel></td>

        <td align="right" dir="rtl">
        <asp:Panel ID="pnlUbody" runat="server" Height="200px" HorizontalAlign="Center" 
            Width="250px" BorderStyle="Groove">
            <strong><span class="linename">UnderBody</span></strong><br />
            <strong><span class="linestation">Station 3</span></strong><br />
            <br />
            <asp:Button ID="btnUbody" runat="server" Text="Fault Reset" Font-Bold="True" 
                Font-Size="Large" Height="75px" style="text-align: center" Width="150px" 
                onclick="btnUbody_Click" UseSubmitBehavior="False" 
                OnClientClick="this.disabled = true;this.style.borderColor = 'green';this.value = 'Submitting...';__doPostBack('btnUbody','')" 
                BorderColor="Red" />
            <br />
            <br />
            <asp:Label ID="lblUbody_Time" runat="server" CssClass="TimeLabel"></asp:Label><br />
            <asp:Label ID="lblUbody_stat" runat="server" CssClass="PLCLabel"></asp:Label>
        </asp:Panel>
        </td>
        </tr>
    </table>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

Open in new window

0
Comment
Question by:ktpoitm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
devlab2012 earned 500 total points
ID: 34146670
There must be something wrong with the web.config. Make sure that web.config is configured properly to run AJAX.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question