在Web表单中保存错误 [英] Saving error in web form

查看:102
本文介绍了在Web表单中保存错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页表单,其中包含很少的文本框和下拉控件。我输入所有必需的数据,并且必须保存在数据库中。当我保存时,我收到以下错误Sys.WebForms.PageRequestManagerServerErrorException:

保存操作没有完成。谁可以帮我这个事? PFA代码。



I am having a web form which has few text box and drop down controls. I enter all the required data and have to save in the database. when i am saving i am getting the following error "Sys.WebForms.PageRequestManagerServerErrorException:"
The save operation is not being done. Can anyone help me on this? PFA code.

<table style="width: 100%; border-color: #FFF; height: 40%" cellpadding="3" cellspacing="0">
                            <tr style="height: 30px">
                                <td>
                                    &nbsp;<asp:Label ID="lblName" runat="server" Text="Name:" ForeColor="Black"

                                        Font-Bold="True" Width="120px"></asp:Label>
                                </td>
                                <td>
                                    <label class="custom-select">
                                        <asp:DropDownList ID="ddlName" runat="server" DataTextField="NAME_DESC"

                                            DataValueField="NAME_ID">
                                        </asp:DropDownList>
                                    </label>
                                </td>
                                <td>
                                    &nbsp;<asp:Label ID="Label16" runat="server" Text="Package No:" ForeColor="Black"

                                        Font-Bold="True" Width="120px"></asp:Label>
                                </td>
                                <td>
                                    <label class="custom-select">
                                        <asp:DropDownList ID="ddlPkg" runat="server" DataTextField="PACKAGE_DESC"

                                            DataValueField="PACKAGE_ID" TabIndex="1">
                                        </asp:DropDownList>
                                    </label>
                                </td>
                            </tr>
                            <tr style="height: 30px">
                                <td>
                                    &nbsp;<asp:Label ID="Label2" runat="server" Text="Category:" ForeColor="Black"

                                        Font-Bold="True" Width="130px"></asp:Label>
                                </td>
                                <td>
                                    <label class="custom-select">
                                        <asp:DropDownList ID="ddlCat" runat="server" DataTextField="CATEGORY_DESC"

                                            DataValueField="CATEGORY_ID" TabIndex="2">
                                        </asp:DropDownList>
                                    </label>
                                </td>
                                <td>
                                    &nbsp;<asp:Label ID="Label4" runat="server" Text="Sub Task:" ForeColor="Black" Font-Bold="True"

                                        Width="130px"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtSubTask" runat="server" CssClass="textboxStyle" MaxLength="100"

                                        TextMode="MultiLine" Height="30px" Width="180px"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
            <table>
                    <tr style="height: 35px">
                        <td align="center">
<asp:Button ID="btnSave" runat="server" Text="Save" Width="80px" CssClass="buttonStyle"

                                TabIndex="15" OnClick="btnSave_Click" />
 </td>
                    </tr>
                </table>





这是我得到的错误:



未捕获的Sys.WebForms.PageRequestManage rServerErrorException:Sys.WebForms.PageRequestManagerServerErrorException:在服务器上处理请求时发生未知错误。从服务器返回的状态代码是:0

推荐答案

这篇关于在Web表单中保存错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆