Click here to Skip to main content
15,902,299 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello everyone,

i am trying to validate my website http://www.avacreation.com on http://validator.w3.org[^] and having a problem validatiing these two elements "ToolkitScript and VIEWSTATE ". it gives me this error:

Line 66, Column 112: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

…tScriptManager1_HiddenField" id="ToolkitScriptManager1_HiddenField" value="" />

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element
C#
(such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>")
.

there is nothing special about the code, I have just placed the ToolkitScriptManager inside the form as follow:

Collapse | Copy Code
C#
<body>
    <form   runat="server">
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server" />


is anyone can help me to solve this problem, Thank you in advance for any help.
best regards,
Posted
Updated 17-Jan-12 21:36pm
v3
Comments
anushripatil 16-Jan-12 23:22pm    
can you post your code
Prashant Srivastava LKO 18-Jan-12 6:00am    
Use updated dll libraries of Ajax so to avoid the Toolkit script Manager Problem

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900