Hi All,
Here is the conteny of my page:
When I try to run this page I get this screen:
I cannot understand what I am doing wrong. I even downloaded an example from http://www.asp.net/learn/ajax-videos/video-97.aspx. Even this gave me the same error.
Can anyone help?
Cheers, Dave.
Here is the conteny of my page:
Code:
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"/>
<div>
<asp:TextBox runat="server" ID="txtPassword"></asp:TextBox>
<cc1:PasswordStrength ID="PasswordStrength1" runat="server" TargetControlID="txtPassword"/>
</div>
</form>
</body>
</html>
When I try to run this page I get this screen:
Server Error in /AJAXFuturesEnabledWebSite1 Application.
--------------------------------------------------------------------------------
The control with ID PasswordStrength1 requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The control with ID PasswordStrength1 requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[InvalidOperationException: The control with ID PasswordStrength1 requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.]
System.Web.UI.ExtenderControl.get_ScriptManager() +198
System.Web.UI.ExtenderControl.RegisterWithScriptManager() +151
System.Web.UI.ExtenderControl.OnPreRender(EventArgs e) +17
AjaxControlToolkit.ExtenderControlBase.OnPreRender(EventArgs e) +44
System.Web.UI.Control.PreRenderRecursiveInternal() +86
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Control.PreRenderRecursiveInternal() +170
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1378; ASP.NET Version:2.0.50727.1378
I cannot understand what I am doing wrong. I even downloaded an example from http://www.asp.net/learn/ajax-videos/video-97.aspx. Even this gave me the same error.
Can anyone help?
Cheers, Dave.