Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

i have use breakpoint in button click , but code is not execute .

What I have tried:

ASP.NET
<asp:panel id="PanelPopup" runat="server" backcolor="#C0FFC0" bordercolor="Green" borderstyle="Solid" borderwidth="2px" forecolor="#0000C0">
    <div id="headerdiv"></div>
    <div id="detail"></div>
    <div id="foterdiv"></div>

    <table cellpadding="0" cellspacing="0" style="width: 144px">
    <tbody>
    <tr>
        <td>                                    
            <table cellpadding="0" cellspacing="0" style="width: 272px">
            <tbody>
            <tr>
                <td>
                    <asp:label id="LabelPartNo" runat="server" font-size="10pt" forecolor="#0000C0" text="Part No" width="136px">
                </td>
                <td>
                    <asp:textbox id="txtPartNo" runat="server" width="200px">
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="height: 24px">
                    <asp:label id="LabelDescription" runat="server" font-size="10pt" forecolor="#0000C0" text="Description" width="136px">
                </td>
                <td style="height: 24px">
                    <asp:textbox id="txtDescription" runat="server" width="200px">
                </td>
                <td style="height: 24px">
                </td>
                <td style="height: 24px">
                </td>
            </tr>
            <tr>
                <td>
                    <asp:label id="LabelPackage" runat="server" font-size="10pt" forecolor="#0000C0" text="Package" width="136px">
                </td>
                <td>
                    <asp:dropdownlist id="cmbPackage" runat="server" width="205px">
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            </tbody>
            </table>
        </td>
    </tr>
    <tr>
        <td>
        </td>
    </tr>
    <tr>
        <td style="height: 24px">
            <asp:button id="MPEOK" runat="server" text="ADD NEW" width="112px" onclick="MPEOK_Click" visible="False">
        </td>
        <td style="height: 24px">
            <asp:button id="cmdUpdate" runat="server" text="SUBMIT" width="112px" onclick="cmdUpdate_Click">
        </td>
        <td style="height: 24px">
            <asp:button id="cmdDelete" runat="server" text="DELETE" width="112px" onclick="cmdDelete_Click" visible="False">
        </td>
        <td style="width: 81px; height: 24px">
            <asp:button id="MPECancel" runat="server" text="Cancel" width="80px">
        </td>
    </tr>
    </tbody>
    </table>

    <asp:button runat="server" id="btnShowModalPopup" style="display:none" width="152px">

    <cc1:modalpopupextender id="MPECaseDetails" runat="server" popupcontrolid="PanelPopup" targetcontrolid="btnShowModalPopup" popupdraghandlecontrolid="PanelPopup" cancelcontrolid="cmdUpdate" backgroundcssclass="modalBackground">

    <cc2:calendarextender id="ToDate" runat="server" behaviorid="ToTime" format="dd-MMM-yyyy" onclientdateselectionchanged="ToDate" targetcontrolid="txtReceivedDate">
Posted
Updated 9-Jan-20 8:10am
v3
Comments
Richard MacCutchan 9-Jan-20 4:04am    
It is impossible to guess what your server was doing when the error occurred. Have you checked the server logs?
ZurdoDev 9-Jan-20 7:46am    
What causes the error to happen?
Richard Deeming 9-Jan-20 14:12pm    
I've fixed the formatting of your code block, but it doesn't help. A 500 error means something went wrong on the server, and we can't see any of your server-side code.

Check the output window in Visual Studio for errors. Also check the Windows Event Viewer to see if there's anything in the application event log. And examine the AJAX request in your browser's developer tools to see if there's a "yellow screen of death" returned, which would include the error details by default.
Dave Kreskowiak 9-Jan-20 16:09pm    
HTTP 500 is just a generic message that means something is either seriously wrong with the configuration of the web server or your server app code crashed.

There is no way an HTML file is going to cause a 500 error.
Member 10194266 9-Jan-20 23:20pm    
Thanks to All,

Issue is Resolve now .

we have three textbox and 2 dropdown value .In one textbox value is too long and when i put few text value and submit then its working .

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900