在解析为此请求提供服务所需的资源期间发生错误以下特定解析错误详细信息并严格修改源文件。 [英] An error occured during the parsing of a resource required to service this request the following specific parse error details and modify your source file approapriately.

查看:70
本文介绍了在解析为此请求提供服务所需的资源期间发生错误以下特定解析错误详细信息并严格修改源文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Parser Error:

Desc: An error occured  during the parsing of a resource  required  to service  this request  the following  specific  parse error  details  and modify  your source  file approapriately.


Parser error Message: Only Content  controls are allowed  directly  in a contetnt page that contain  content  controls.

source error:

Line 245 </asp:Panel>
line 247 </asp:Content>
Line 248











这是打开表格后我在asp.net中遇到的错误..

我可能知道它是怎么回事我不知道你能不能告诉我我做错了什么...





我的代码:






This is the error i am getting in asp.net after open the form ..
may i know how it's comming i dont know can you plz tell me what i had done the mistake...


my code:

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"

    CodeFile="App_form.aspx.vb" Inherits="App_form" Title="Untitled Page" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
<br />
    <asp:LinkButton ID="LinkButton4" runat="server" Style="z-index: 100; left: 757px;
        position: absolute; top: 434px; height: 15px; width: 77px;" Font-Bold="True"

        Font-Names="Times New Roman" Font-Size="Medium" Visible="false">LogOut</asp:LinkButton>
    <asp:Label ID="Label11" runat="server" Font-Bold="True" Font-Names="Calibri" Font-Size="Large"

        Style="z-index: 102; left: 6px; position: absolute; top: -38px; width: 718px;
        text-align: center;" Text="Appraisal Form" BorderColor="#8CB1DA" ForeColor="White"></asp:Label>
    <br />
    <asp:Panel ID="Panel1" runat="server" Font-Bold="False" Style="top: -3px; z-index: 103;
        left: 3px; position: absolute; height: 275px; width: 715px;">
        <br />
        <asp:Label ID="Label1" runat="server" Font-Bold="False" Font-Names="Calibri" ForeColor="White"

            Style="z-index: 100; left: 10px; position: absolute; top: 38px; width: 107px;"

            Text="Employee Code" Font-Size="Medium"></asp:Label>
        <asp:TextBox ID="txtDepartment" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            ForeColor="#0000C0" Style="z-index: 101; left: 348px; position: absolute; top: 63px;
            width: 135px; bottom: 193px;"></asp:TextBox>
        <asp:TextBox ID="txtDesignation" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            ForeColor="#0000C0" Style="z-index: 101; left: 119px; position: absolute; top: 63px;
            width: 134px;"></asp:TextBox>
        <asp:TextBox ID="txtemp" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            ForeColor="#0000C0" Style="z-index: 101; left: 120px; position: absolute; top: 37px;
            width: 133px;"></asp:TextBox>
        <asp:Label ID="Label2" runat="server" Font-Bold="False" Font-Names="Calibri" ForeColor="White"

            Style="z-index: 102; left: 264px; position: absolute; top: 37px; width: 66px;"

            Text="Name" Font-Size="Medium"></asp:Label>
        <asp:TextBox ID="txtname" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            ForeColor="#0000C0" Style="z-index: 103; left: 349px; position: absolute; top: 37px;
            width: 135px;"></asp:TextBox>
        <asp:Label ID="Label3" runat="server" Font-Bold="False" Font-Names="Calibri" ForeColor="White"

            Style="z-index: 104; left: 8px; position: absolute; top: 89px; height: 20px;
            bottom: 166px;" Text="Date of Join" Width="107px" Font-Size="Medium"></asp:Label>
        <asp:TextBox ID="txtdt" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            ForeColor="#0000C0" Style="z-index: 105; left: 119px; position: absolute; top: 89px;
            width: 135px;"></asp:TextBox>
        <asp:Label ID="Label4" runat="server" Font-Bold="False" Font-Names="Calibri" ForeColor="White"

            Style="z-index: 106; left: 492px; position: absolute; top: 38px; width: 81px;"

            Text="Designation" Font-Size="Medium"></asp:Label>
        <asp:TextBox ID="txtpos" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            ForeColor="#0000C0" Style="z-index: 107; left: 575px; position: absolute; top: 37px;
            width: 135px;"></asp:TextBox>
        <br />
        <asp:Label ID="lblReviewer" runat="server" Font-Bold="False" Font-Names="Calibri"

            Font-Size="Medium" ForeColor="White" Style="z-index: 100; left: 493px; position: absolute;
            top: 89px; width: 77px;" Text="Reviewer"></asp:Label>
        <asp:Label ID="lblLocation" runat="server" Font-Bold="False" Font-Names="Calibri"

            Font-Size="Medium" ForeColor="White" Style="z-index: 100; left: 264px; position: absolute;
            top: 87px; width: 72px;" Text="Location"></asp:Label>
        <asp:Label ID="lblDepartment" runat="server" Font-Bold="False" Font-Names="Calibri"

            Font-Size="Medium" ForeColor="White" Style="z-index: 100; left: 263px; position: absolute;
            top: 61px; width: 81px;" Text="Department"></asp:Label>
        <asp:Label ID="lblManager" runat="server" Font-Bold="False" Font-Names="Calibri"

            Font-Size="Medium" ForeColor="White" Style="z-index: 100; left: 10px; position: absolute;
            top: 65px" Text="Manager" Width="107px"></asp:Label>
        <br />
        <br />
        <br />
        <asp:Label ID="Label5" runat="server" Font-Bold="False" Font-Names="Calibri" ForeColor="White"

            Style="z-index: 109; left: 494px; position: absolute; top: 62px; width: 47px;"

            Text="Grade" Font-Size="Medium"></asp:Label>
        &nbsp;
        <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" Font-Bold="True"

            Font-Names="Times New Roman" ForeColor="#0000C0" Style="z-index: 110; left: 107px;
            position: absolute; top: -30px; width: 130px;">
        </asp:DropDownList>
        <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True"

            Font-Bold="True" Font-Names="Times New Roman" ForeColor="#0000C0" Style="z-index: 110; left: 575px;
            position: absolute; top: 62px; width: 130px;">
        </asp:DropDownList>
        <br />
        <br />
        <br />
        <br />
        <div id="divGV" style="overflow: scroll; height: 150px; width: 100;">
            <asp:Label ID="Label19" runat="server" Font-Bold="True" Font-Names="Times New Roman"

                Font-Size="Medium" ForeColor="Aqua" Style="z-index: 103; left: 441px; position: absolute;
                top: -34px; height: 29px; width: 257px;"></asp:Label>
            <asp:Label ID="Label18" runat="server" Font-Bold="True"

                Font-Names="Times New Roman" Font-Size="Medium" ForeColor="Aqua" Style="z-index: 103; left: 7px; position: absolute;
                top: -32px; height: 29px; width: 95px;" Text="Document No"></asp:Label>
            <asp:Label ID="Label17" runat="server" Font-Bold="True"

                Font-Names="Times New Roman" Font-Size="Medium" ForeColor="Aqua" Style="z-index: 103; left: 11px; position: absolute;
                top: 5px; height: 29px; width: 84px;" Text="From Month"></asp:Label>
            <asp:Label ID="Label15" runat="server" Font-Bold="True" Font-Names="Times New Roman"

                Font-Size="Medium" ForeColor="Aqua" Style="z-index: 103; left: 323px; position: absolute;
                top: 5px; height: 29px; width: 84px;" Text="To Month"></asp:Label>
            <asp:TextBox ID="txttyear" runat="server" AutoPostBack="True" Font-Bold="True" Font-Names="Times New Roman"

                ForeColor="#0000C0" Style="z-index: 108; left: 528px; position: absolute; top: 5px;
                width: 61px; right: 126px; height: 19px;" TabIndex="5"></asp:TextBox>
            <asp:TextBox ID="txtfyear" runat="server" AutoPostBack="True" Font-Bold="True" Font-Names="Times New Roman"

                ForeColor="#0000C0" Style="z-index: 108; left: 233px; position: absolute; top: 7px;
                width: 61px; right: 421px;" TabIndex="5"></asp:TextBox>
            <asp:TextBox ID="txttmonth" runat="server" AutoPostBack="True" Font-Bold="True" Font-Names="Times New Roman"

                ForeColor="#0000C0" Style="z-index: 108; left: 401px; position: absolute; top: 7px;
                width: 55px; right: 259px;" TabIndex="5"></asp:TextBox>
            <asp:Label ID="lblFrmYear" runat="server" Font-Bold="True" Font-Names="Times New Roman"

                Font-Size="Medium" ForeColor="Aqua" Style="z-index: 102; left: 158px; position: absolute;
                top: 6px; right: 477px; width: 80px; height: 22px;" Text="From Year"></asp:Label>
            <asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Names="Times New Roman"

                Font-Size="Medium" ForeColor="Aqua" Style="z-index: 103; left: 467px; position: absolute;
                top: 5px; height: 21px; width: 83px;" Text="To Year"></asp:Label>
            <asp:GridView ID="Gridview1" runat="server" ShowFooter="True" AutoGenerateColumns="False"

            OnRowDeleting="OnRowDeleting"

                Height="28px" Width="705px" BackColor="LightGoldenrodYellow" BorderColor="Tan"

                BorderWidth="1px" CellPadding="2" ForeColor="Black" GridLines="None">
                <Columns>
                    <asp:BoundField DataField="RowNumber" HeaderText="S.No" />
                    <asp:TemplateField HeaderText="Key Results Area">
                        <ItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="KPI">
                        <ItemTemplate>
                            <asp:TextBox ID="TextBox9" runat="server" TextMode="MultiLine"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Target">
                        <ItemTemplate>
                            <asp:TextBox ID="TextBox2" runat="server" TextMode="MultiLine"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Weightage(%)">
                        <ItemTemplate>
                            <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Target Achieved (Self-Assessment)">
                        <ItemTemplate>
                            <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
                            <%-- <asp:DropDownList ID="TextBox4" runat="server" Width="150" AppendDataBoundItems="true" Enabled="false">
                            <asp:ListItem Text="-- Select --" Value="-1" />
                            <asp:ListItem Text="Needs Improvements" Value="Needs Improvements" />
                            <asp:ListItem Text="Party Meets Expectation" Value="Party Meets Expectation" />
                            <asp:ListItem Text="Meets Expectation" Value="Meets Expectation" />
                            <asp:ListItem Text="Sometime Exceeds Expected" Value="Sometime Exceeds Expected" />
                            <asp:ListItem Text="OutStandaing" Value="OutStandaing" />
                            </asp:DropDownList>--%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Remarks">
                        <ItemTemplate>
                            <asp:TextBox ID="TextBox5" runat="server" Enabled="false"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Target Achieved (Appraiser)">
                        <ItemTemplate>
                            <asp:TextBox ID="TextBox6" runat="server" Enabled="false"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Final Achievement.">
                        <ItemTemplate>
                            <asp:TextBox ID="TextBox7" runat="server" Enabled="false"></asp:TextBox>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Reviewer's Comment">
                        <ItemTemplate>
                            <asp:TextBox ID="TextBox8" runat="server" Enabled="false"></asp:TextBox>
                        </ItemTemplate>
                        <FooterStyle HorizontalAlign="Right" />
                        <FooterTemplate>
                            <asp:Button ID="ButtonAdd" runat="server" Text="Add New Row" OnClick="ButtonAdd_Click" />
                        </FooterTemplate>
                    </asp:TemplateField>
                    <asp:ButtonField ButtonType="Button" CommandName="Delete" HeaderText="Delete"

                        ShowHeader="True" Text="Delete"  />
                </Columns>
                <FooterStyle BackColor="Tan" />
                <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                <HeaderStyle BackColor="Tan" Font-Bold="True" />
                <AlternatingRowStyle BackColor="PaleGoldenrod" />
            </asp:GridView>
        </div>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <asp:TextBox ID="txtfmonth" runat="server" AutoPostBack="True" Font-Bold="True" Font-Names="Times New Roman"

            ForeColor="#0000C0" Style="z-index: 120; left: 100px; position: absolute; top: 7px;
            height: 19px; width: 51px;" TabIndex="4"></asp:TextBox>
        <asp:TextBox ID="txtReviewer" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            ForeColor="#0000C0" Style="z-index: 101; left: 572px; position: absolute; top: 90px;
            width: 135px;"></asp:TextBox>
        <asp:TextBox ID="txtLocation" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            ForeColor="#0000C0" Style="z-index: 101; left: 347px; position: absolute; top: 89px;
            width: 135px;"></asp:TextBox>
        <br />
        <br />
        <br />
        <asp:Button ID="btnProcess" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            Font-Size="10pt" ForeColor="#284E98" Style="z-index: 111; left: 611px; position: absolute;
            top: 4px; height: 22px; width: 96px;" Text="Process" ValidationGroup="add" />
        <asp:Button ID="add" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            Font-Size="10pt" ForeColor="#284E98" Style="z-index: 111; left: 557px; position: absolute;
            top: 400px; height: 26px; width: 66px;" Text="Submit" ValidationGroup="add" />
        <asp:Button ID="cancel" runat="server" Font-Bold="True" Font-Names="Times New Roman"

            Font-Size="10pt" ForeColor="#284E98" Style="z-index: 113; left: 628px; position: absolute;
            top: 400px; height: 26px; width: 66px;" Text="Cancel" />
        <br />
        <br />
        <br />
        <br />
        <br />
        <asp:ImageButton ID="ImageButton1" runat="server" AlternateText="Add" BorderStyle="None"

            ImageUrl="~/Images/btn.jpeg" Style="z-index: 114; left: 661px; position: absolute;
            top: 96px; height: 17px; width: 50px;" Visible="False" />
        <asp:TextBox ID="txtAppraiser0" runat="server" Style="z-index: 170; left: 201px;
            position: absolute; top: 360px; width: 493px; height: 32px;" TextMode="MultiLine"></asp:TextBox>
        <asp:TextBox ID="txtAppraiser" runat="server" Style="z-index: 170; left: 201px; position: absolute;
            top: 323px; width: 493px; height: 31px;" TextMode="MultiLine"></asp:TextBox>
        <asp:TextBox ID="txtTraining" runat="server" Style="z-index: 170; left: 201px; position: absolute;
            top: 287px; width: 493px; height: 30px;" TextMode="MultiLine"></asp:TextBox>
        <asp:Label ID="Label14" runat="server" Font-Bold="False" Font-Names="Calibri" Font-Size="Medium"

            ForeColor="White" Style="z-index: 109; left: 13px; position: absolute; top: 362px;
            width: 179px; height: 24px;" Text="Final Comments - Reviewer"></asp:Label>
        <asp:Label ID="Label13" runat="server" Font-Bold="False" Font-Names="Calibri" Font-Size="Medium"

            ForeColor="White" Style="z-index: 109; left: 12px; position: absolute; top: 326px;
            width: 189px; height: 25px;" Text="Final Comments - Appraiser"></asp:Label>
        <asp:Label ID="Label12" runat="server" Font-Bold="False" Font-Names="Calibri" Font-Size="Medium"

            ForeColor="White" Style="z-index: 109; left: 14px; position: absolute; top: 290px;
            width: 131px; height: 21px;" Text="Training Needs"></asp:Label>
        <asp:GridView ID="gvApprList" runat="server" AutoGenerateColumns="False" BackColor="#DEBA84"

            BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2"

            Height="174px" Width="729px" DataKeyNames="DocEntry">
            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <Columns>
                <asp:ButtonField ButtonType="Link" Text="Select" CommandName="SLK" HeaderText="Select"

                    ItemStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Center" ItemStyle-ForeColor="DarkBlue" />
                <asp:BoundField DataField="DocEntry" HeaderText="Doc Entry" ItemStyle-Font-Bold="true"

                    ItemStyle-HorizontalAlign="Center" Visible="false"/>

                <asp:BoundField DataField="U_NAME" HeaderText="Employee Name" ItemStyle-Font-Bold="true"

                    ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="U_DSIG" HeaderText="Designation" ItemStyle-Font-Bold="true"

                    ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="U_FrmMth" HeaderText="From Month" ItemStyle-Font-Bold="true"

                    ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="U_FrmYer" HeaderText="From Year" ItemStyle-Font-Bold="true"

                    ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="U_ToMth" HeaderText="To Month" ItemStyle-Font-Bold="true"

                    ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="U_ToYer" HeaderText="To Year" ItemStyle-Font-Bold="true"

                    ItemStyle-HorizontalAlign="Center" />
            </Columns>
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
    </asp:Panel>
</asp:Content>

推荐答案

It is very difficult to pin point the problem here. But it seems the error is in your HTML file only. So what I would suggest is that comment all the codes in your .cs file of html file and comment as the HTML codes in Content Tag also. Uncomment the HTML codes in chunk and run the application. This way you will be able to identify on which chunk of HTML codes are you actually getting error.
It is very difficult to pin point the problem here. But it seems the error is in your HTML file only. So what I would suggest is that comment all the codes in your .cs file of html file and comment as the HTML codes in Content Tag also. Uncomment the HTML codes in chunk and run the application. This way you will be able to identify on which chunk of HTML codes are you actually getting error.


这篇关于在解析为此请求提供服务所需的资源期间发生错误以下特定解析错误详细信息并严格修改源文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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