Solved

ASP Update Panel Problem

Posted on 2010-11-16
1
568 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
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now