0

在包含内容且显示红色错误的内容页面中,仅允许直接使用内容控件。

在 iis 中以源代码发布网站后,我收到上述错误,它没有显示任何错误,但在 iis 中它给出了错误。

还有一件事是在本地服务器(iis)和源代码中没有问题,但在客户端iis中,上述问题正在出现

我有 25 个表格中的 25 个表格,只有 3 个给出相同的问题...我从每个表格中获取母版页..你能给我任何建议吗..请..

4

2 回答 2

2

似乎您在标签之外编写了 Script 标签或其他一些内容。从外面将其取出并将其放入标签内。你的错误可能消失了。

谢谢。

于 2013-11-15T04:47:06.850 回答
0
<%@ Page Language="VB" MasterPageFile="~/MasterPage1.master" AutoEventWireup="false"
    CodeFile="App_form.aspx.vb" Inherits="App_form" Title="Untitled Page" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">

    <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="Cambria" Font-Size="Large"
        Style="z-index: 102; left: 0px; position: absolute; top: -1px; width: 1125px;
        text-align: center; height: 25px;" Text="Appraisal Form" BorderColor="#8CB1DA" 
        ForeColor="Black" BackColor="#666666"></asp:Label>
    <br />
    <asp:Panel ID="Panel1" runat="server" Font-Bold="False" Style="top: 57px; z-index: 103;
        left: 9px; position: absolute; height: 275px; width: 1111px;">
        <br />
        <asp:Label ID="Label1" runat="server" Font-Bold="False" Font-Names="Cambria" ForeColor="Black"
            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="Cambria"
            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="Cambria"
            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="Cambria"
            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="Cambria" ForeColor="Black"
            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="Cambria"
            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="Cambria" ForeColor="Black"
            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="Cambria"
            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="Cambria" ForeColor="Black"
            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="Cambria"
            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="Cambria"
            Font-Size="Medium" ForeColor="Black" 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="Cambria"
            Font-Size="Medium" ForeColor="Black" 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="Cambria"
            Font-Size="Medium" ForeColor="Black" Style="z-index: 100; left: 262px; position: absolute;
            top: 60px; width: 81px;" Text="Department"></asp:Label>
        <asp:Label ID="lblManager" runat="server" Font-Bold="False" Font-Names="Cambria"
            Font-Size="Medium" ForeColor="Black" 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="Cambria" ForeColor="Black"
            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="Cambria" ForeColor="#0000C0" Style="z-index: 110; left: 119px;
            position: absolute; top: -30px; width: 130px;">
        </asp:DropDownList>
        <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" 
            Font-Bold="True" Font-Names="Cambria" ForeColor="#0000C0" Style="z-index: 110; left: 574px;
            position: absolute; top: 62px; width: 136px; height: 19px;">
        </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="Cambria"
                Font-Size="Medium" ForeColor="Black" Style="z-index: 103; left: 265px; position: absolute;
                top: -32px; height: 29px; width: 446px;"></asp:Label>
            <asp:Label ID="Label18" runat="server" Font-Bold="True" 
                Font-Names="Cambria" Font-Size="Medium" ForeColor="Black" Style="z-index: 103; left: 7px; position: absolute;
                top: -32px; height: 29px; width: 104px;" Text="Document No"></asp:Label>
            <asp:Label ID="Label17" runat="server" Font-Bold="True" 
                Font-Names="Cambria" Font-Size="Medium" ForeColor="Black" Style="z-index: 103; left: 11px; position: absolute;
                top: 5px; height: 29px; width: 92px;" Text="From Month"></asp:Label>
            <asp:Label ID="Label15" runat="server" Font-Bold="True" Font-Names="Cambria"
                Font-Size="Medium" ForeColor="Black" 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="Cambria"
                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="Cambria"
                ForeColor="#0000C0" Style="z-index: 108; left: 253px; position: absolute; top: 7px;
                width: 61px; right: 797px;" TabIndex="5"></asp:TextBox>
            <asp:TextBox ID="txttmonth" runat="server" AutoPostBack="True" Font-Bold="True" Font-Names="Cambria"
                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="Cambria"
                Font-Size="Medium" ForeColor="Black" Style="z-index: 102; left: 167px; position: absolute;
                top: 6px; right: 864px; width: 80px; height: 22px;" Text="From Year"></asp:Label>
            <asp:Label ID="Label16" runat="server" Font-Bold="True" Font-Names="Cambria"
                Font-Size="Medium" ForeColor="Black" 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="#666666" BorderColor="#666666" 
                CellPadding="2" ForeColor="Black" GridLines="None" Font-Names="Cambria" 
                Font-Size="Small">
                <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="#666666" />
                <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
                <HeaderStyle BackColor="#666666" Font-Bold="True" />
            </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: 108px; position: absolute; top: 7px;
            height: 19px; width: 51px;" TabIndex="4"></asp:TextBox>
        <asp:TextBox ID="txtReviewer" runat="server" Font-Bold="True" Font-Names="Cambria"
            ForeColor="#0000C0" Style="z-index: 101; left: 574px; position: absolute; top: 90px;
            width: 135px;"></asp:TextBox>
        <asp:TextBox ID="txtLocation" runat="server" Font-Bold="True" Font-Names="Cambria"
            ForeColor="#0000C0" Style="z-index: 101; left: 348px; position: absolute; top: 89px;
            width: 135px;"></asp:TextBox>
        <br />
        <br />
        <br />
        <asp:Button ID="btnProcess" runat="server" Font-Bold="True" Font-Names="Cambria"
            Font-Size="10pt" ForeColor="White" Style="z-index: 111; left: 611px; position: absolute;
            top: 4px; height: 22px; width: 96px;" Text="Process" ValidationGroup="add" 
            BackColor="#666666" BorderColor="Blue" BorderStyle="Solid" />
        <asp:Button ID="add" runat="server" Font-Bold="True" Font-Names="Cambria"
            Font-Size="10pt" ForeColor="White" Style="z-index: 111; left: 557px; position: absolute;
            top: 400px; height: 26px; width: 66px;" Text="Submit" 
            ValidationGroup="add" BackColor="#666666" BorderColor="Blue" 
            BorderStyle="Solid" />
        <asp:Button ID="cancel" runat="server" Font-Bold="True" Font-Names="Times New Roman"
            Font-Size="10pt" ForeColor="White" Style="z-index: 113; left: 628px; position: absolute;
            top: 400px; height: 26px; width: 66px;" Text="Cancel" BackColor="#666666" 
            BorderColor="Blue" BorderStyle="Solid" />
        <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" Font-Names="Cambria"></asp:TextBox>
        <asp:TextBox ID="txtAppraiser" runat="server" Style="z-index: 170; left: 201px; position: absolute;
            top: 323px; width: 493px; height: 31px;" TextMode="MultiLine" 
            Font-Names="Cambria"></asp:TextBox>
        <asp:TextBox ID="txtTraining" runat="server" Style="z-index: 170; left: 201px; position: absolute;
            top: 287px; width: 493px; height: 30px;" TextMode="MultiLine" 
            Font-Names="Cambria"></asp:TextBox>
        <asp:Label ID="Label14" runat="server" Font-Bold="False" Font-Names="Cambria" Font-Size="Medium"
            ForeColor="Black" 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="Cambria" Font-Size="Medium"
            ForeColor="Black" 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="Cambria" Font-Size="Medium"
            ForeColor="Black" 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>

把这段代码。

于 2013-11-15T05:40:23.070 回答