Click here to Skip to main content
14,422,439 members
Rate this:
Please Sign up or sign in to vote.
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: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 9: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 .
Member 10194266 9-Jan-20 23:50pm
   
I am fetching below value txtPartNo.Text = Crd("PartNo")
txtDescription.Text = Trim(Crd("Description"))
txtManufacture.Text = Crd("Manufacturer")
txtPRQty.Text = Crd("QtyRequired")
cmbPackage.SelectedItem.Text = Crd("Package")
'cmbPackage.SelectedValue = Crd("Package")
RnoteNo = Crd("RNoteNo")

cmbCategory.SelectedItem.Text = Crd("Category")

at the time of fatching my description value is too long ,but interesting thing is i am not update description value but when i click update then 500 error msg show so wh. i am updated only qty. so what i do when descrition value show in textbox then i will remove some text in the description and update .then its working fine.

and update QtyRequired ,QtyAsPerPacking field

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100