Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 582
  • Last Modified:

ASP Update Panel Problem

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
ktpoitm
Asked:
ktpoitm
1 Solution
 
devlab2012Commented:
There must be something wrong with the web.config. Make sure that web.config is configured properly to run AJAX.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now