Непризнанный префикс тега или фильтр устройства cc1-что это значит? Пожалуйста помочь
Привет, я новичок в веб-форме одной из моих страниц aspx, имеющих эту ошибку.
<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Site1.master" AutoEventWireup="True" CodeBehind="LOR.aspx.cs" Inherits="CCMD_TEST.LOR" %> <asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server"> <style type="text/css"> .style2 { width: 188px; } .style3 { width: 173px; } .style4 { color: #000000; font-family: "Segoe UI"; } .style6 { height: 16px; } .style7 { height: 19px; } .style8 { width: 126px; } .style9 { width: 188px; font-family: "Segoe UI"; color: #000000; } </style> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> <%# gvDetails.Rows.Count + (gvDetails.PageIndex * 75) + 1%> <%--<asp:BoundField DataField="DemID" HeaderText="DemID" />--%> <%----%> Letter Of Request Nature Of Work <asp:DropDownList ID="ddlnatureofwork" runat="server" Height="23px" Style="margin-left: 0" Width="172px"> <asp:ListItem>Select Nature <asp:ListItem>Electrical <asp:ListItem>Civil <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="ddlnatureofwork" Text="*" ErrorMessage="nature of work" InitialValue="Select Nature" ForeColor="Red" EnableClientScript="true" SetFocusOnError="true"> <%--<asp:LinkButton ID="lbtnMail" runat="server" OnClientClick="window.document.forms[0].target='_blank';" CausesValidation="false" PostBackUrl="~/Mail.aspx">Compose Mail--%> <%-- <asp:LinkButton ID="lbtnMail" runat="server" onclick="lbtnMail_Click1">Compose Mail--%> Department <asp:DropDownList ID="ddDepartment" runat="server" Width="75%"> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddDepartment" ErrorMessage="department" InitialValue="Select One" ForeColor="Red" Text="*" EnableClientScript="true" SetFocusOnError="true"> Request Date <asp:TextBox ID="txtletterdt" runat="server" Height="20px" Width="168px"> <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="letter date" ControlToValidate="txtletterdt" ForeColor="Red" EnableClientScript="true" SetFocusOnError="true">* Requirements <asp:TextBox ID="txtRequirements" runat="server" Height="60px" Width="191px" Style="resize: none" TextMode="MultiLine"> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Requirements" Text="*" ControlToValidate="txtRequirements" ForeColor="Red" EnableClientScript="true" SetFocusOnError="true"> <asp:Label ID="lblDemNo" runat="server" Visible="False"> Attach Letter Of Request <asp:FileUpload ID="FileUpload1" runat="server" /> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="FileUpload1" ErrorMessage="Choose a file!" EnableClientScript="true" ForeColor="Red" Text="*" SetFocusOnError="true"> <asp:Button ID="btnUpload" runat="server" Text="Upload" OnClick="btnUpload_Click" /> <asp:Image ID="imgLoading" Visible="false" runat="server" ImageUrl="~/images/Uploading.gif" /> <asp:ValidationSummary ID="ValidationSummary1" ShowMessageBox="true" ShowSummary="false" HeaderText="You must enter a value in the following fields:" EnableClientScript="true" runat="server" ForeColor="#FF3300" /> List of Request <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <asp:PostBackTrigger ControlID="gvDetails" /> <asp:GridView ID="gvDetails" runat="server" AutoGenerateColumns="False" DataKeyNames="DemID" OnRowDataBound="gvDetails_RowDataBound" HorizontalAlign="Center" CellPadding="4" ForeColor="#333333" AllowPaging="True" OnPageIndexChanging="gvDetails_PageIndexChanging"> <HeaderStyle Font-Bold="true" BackColor="#5D7B9D" ForeColor="White" /> <%--<SelectedRowStyle BackColor="#FFFF66" />--%> <asp:TemplateField HeaderText="SlNo"> <%# gvDetails.Rows.Count + (gvDetails.PageIndex * 75) + 1%> <asp:TemplateField HeaderText="DemID"> <asp:LinkButton ID="lnkView" runat="server" Text='<%# Bind("DemID") %>' OnClick="lnkView_Click" CausesValidation="false"> <%--<asp:BoundField DataField="DemID" HeaderText="DemID" />--%> <asp:BoundField DataField="LetterName" HeaderText="Letter Of Request" /> <asp:BoundField DataField="NatureOfWork" HeaderText="Nature Of Work" /> <asp:BoundField DataField="LetterDate" HeaderText="Request Date" DataFormatString="{0:dd/MM/yyyy}" /> <asp:BoundField DataField="Department" HeaderText="Department" /> <asp:BoundField DataField="Requirements" HeaderText="Requirements" HeaderStyle-Width="100%"> <HeaderStyle Width="100%" /> <asp:BoundField DataField="InsertDate" HeaderText="Schedule Date" DataFormatString="{0:dd/MM/yyyy}" /> <asp:TemplateField HeaderText="SheduleMeeting"> <asp:LinkButton ID="lnkDownload" runat="server" Text="SheduleMeeting" OnClick="lnkDownload_Click" CausesValidation="false"> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <%----%> <cc1:calendarextender ID="CE" TargetControlID="txtletterdt" runat="server" FirstDayOfWeek="Sunday" Format="dd/MM/yyyy"> <cc1:textboxwatermarkextender ID="TBWE" runat="server" TargetControlID="txtletterdt" WatermarkText="Select Letter Date">
Что я уже пробовал:
<%@ Register Assembly= " AjaxControlToolkit"
Пространство имен= "AjaxControlToolkit" TagPrefix= " cc1 " % & gt;
когда я дал этот код сверху код тоже не работает
Richard Deeming
Пространство имен должно быть где-то зарегистрировано, либо в верхней части файла разметки, где вы его используете, либо в верхней части файла разметки. web.config
файл.
Какую ошибку вы получаете, когда добавляете <%@ Register ... %>
директива в верхнюю часть файла?