Cette page manque un HtmlHead de contrôle qui est nécessaire pour la feuille de style CSS lien est ajouté. S'il vous plaît ajouter <head runat=“server” />

j'ai la page et ajouter Ajax extension, mais il en jetant erreur pour moi

je suis en utilisant la page principale si cette page n'a pas <head>

code de la page

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" runat="server" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <table style="width: 100%">
    <tr>
        <td colspan="5" style="text-align: center; height: 20px;">Search </td>
    </tr>
    <tr>
        <td style="text-align: center; height: 20px;">Ticket number</td>
        <td style="text-align: center; height: 20px;">Client name</td>
        <td style="text-align: center; height: 20px;">Address</td>
        <td style="text-align: center; height: 20px;">Assigned to</td>
        <td style="text-align: center; height: 20px;">Date</td>
    </tr>
    <tr>
        <td style="width: 157px">
            <asp:TextBox ID="txt_incID" runat="server" Width="146px"></asp:TextBox>
        </td>
        <td>
            <asp:TextBox ID="txb_ClientName" runat="server" Width="146px"></asp:TextBox>
        </td>
        <td>
            <asp:DropDownList ID="ddl_Address" runat="server" Width="146px" DataSourceID="Ds_address" DataTextField="StrName" DataValueField="StrID">
                <asp:ListItem Value="null"></asp:ListItem>
            </asp:DropDownList>
        </td>
        <td>
            <asp:DropDownList ID="ddl_EmpID" runat="server" Width="146px" DataSourceID="DS_Employee" DataTextField="LastName" DataValueField="EmpID">
                <asp:ListItem Value="null"></asp:ListItem>
            </asp:DropDownList>
        </td>
        <td>
            <asp:TextBox ID="txb_date" runat="server" Width="146px"></asp:TextBox>

            <asp:CalendarExtender ID="txb_date_CalendarExtender" runat="server" Enabled="True" TargetControlID="txb_date">
            </asp:CalendarExtender>

        </td>
    </tr>
    <tr>
        <td style="width: 157px">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td style="width: 157px">&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
</table>

    <br />
    <br />
    <asp:SqlDataSource ID="Ds_address" runat="server" ConnectionString="<%$ ConnectionStrings:TicketsConnectionString %>" SelectCommand="SELECT * FROM [Streets]"></asp:SqlDataSource>
    <asp:SqlDataSource ID="DS_Employee" runat="server" ConnectionString="<%$ ConnectionStrings:TicketsConnectionString %>" SelectCommand="SELECT * FROM [Employee]"></asp:SqlDataSource>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

</asp:Content>

dans d'autres rubriques de personnes conseillons d'ajouter cette

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>

mais je l'ai sur ma page. Des idées comment réparer?
Master code de la page

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Tickets</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700|Archivo+Narrow:400,700" rel="stylesheet" type="text/css">
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
    <style type="text/css">
        .Buttons
        {
            font-family: Tahoma;
            font-size: large;
            background-color: #999999;
            border-bottom-color: #FF0000;
            border-style: none none outset none;
        }
        .Logins
        {
            font-family: tahoma;
            color: #FF0000;
        }
        .ButtonsInSite
        {
            font-family: tahoma;
            background-color: #C0C0C0;
            border-color: #FFFFFF #FFFFFF #FF0000 #FFFFFF;
            border-bottom-style: double;
            border-radius: 7px;
            -moz-border-radius: 7px;
            -webkit-border-radius: 7px;
            box-shadow: 0px 2px 9px #800000;
            font-weight: bold;
        }
    </style>
    </head>
<body>
    <form id="form1" runat="server">
<div id="header-wrapper">
    <div id="header">
        <div id="logo">
            <h1>Tickets</h1>
            <div style="text-align: right">

                <asp:LoginName ID="LoginName2" runat="server" CssClass="Logins" />
                &nbsp;|
                <asp:LoginStatus ID="LoginStatus1" runat="server" CssClass="Logins" />
            </div>
        </div>
    </div>
</div>
<div id="wrapper"> 
    <!-- end #header -->
    <div id="page">
        <div id="page-bgtop">
            <div id="page-bgbtm">
                <div id="sidebar">
                    <h2>Navigation</h2>
                    <asp:Button ID="Button1" runat="server" Text="Button" Width="118px" CssClass="ButtonsInSite" />
                    <br />
                    <asp:Button ID="Button2" runat="server" Text="Button" Width="118px"  CssClass="ButtonsInSite"/>
                    <br />
                    <asp:Button ID="Button3" runat="server" Text="Button" Width="118px" CssClass="ButtonsInSite"/>
                    <br />
                    <asp:Button ID="Button4" runat="server" Text="Button" Width="118px" CssClass="ButtonsInSite"/>
                    <br />
                    <asp:Button ID="Button5" runat="server" Text="Admin" Width="118px" CssClass="ButtonsInSite" PostBackUrl="~/Admin/AdmStart.aspx"/>
                    <br />


                </div>
                <!-- end #sidebar -->
                <div id="content">
                    <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
                    </asp:ContentPlaceHolder>
                </div>
                <!-- end #content -->

                <div style="clear: both;">&nbsp;</div>
            </div>
        </div>
    </div>
    <!-- end #page --> 
</div>
<div id="footer">
    <p> © 2013</p>
</div>
<!-- end #footer -->
    </form>
</body>
</html>
Pourriez-vous ajouter le code de la masterpage s'il vous plaît?
Maître de la page de code ajouté

OriginalL'auteur Andrey | 2013-08-22

Leave a Reply

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *