Hi
I have written the code for Atlas ModalPopup Control . The code is as follows
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" 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>
<link href="Site.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<%-- <asp:ScriptManager ID="ScriptManager1" runat="server" />--%>
<div>
<atlas:ScriptManager ID="sm1" runat="Server" EnablePartialUpdates="true"/>
<%-- <asp:ScriptManager ID="scriptManager2" runat="server" EnablePartialRendering="True" EnablePageMethods="True" />--%>
<asp:Button ID="BtnClick" runat="server" Text="ClickItem" />
<asp:Panel ID="Panel4" runat="server" Height="228px" Style="z-index: 106; left: 244px;
position: absolute; top: 396px" Width="270px" BackColor="#C0FFC0">
<table border="0">
<tr>
<td colspan="2" align="center">
<asp:Label ID="Label16" runat="server" Font-Bold="True" Text="Customer Registration" Width="156px"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label17" runat="server" Text="Name"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtName1" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Name Feild cannot be blank" ControlToValidate="txtName1" ValidationGroup="CustomerRegistration">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblUserId1" runat="server" Text="User Id"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtUserId2" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="User Id fields cannot be blank" ControlToValidate="txtUserId2" ValidationGroup="CustomerRegistration">*</asp:RequiredFieldValidator></td>
</tr>
<tr>
<td>
<asp:Label ID="lblPassword1" runat="server" Text="Password"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtPassword2" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Password field cannot be blank" ControlToValidate="txtPassword2" ValidationGroup="CustomerRegistration">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblSex1" runat="server" Text="Sex"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtSex1" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Sex field cannot be blank" ControlToValidate="txtSex1" ValidationGroup="CustomerRegistration">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblDob1" runat="server" Text="Dob"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtDob1" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="DOB field cannot be blank" ControlToValidate="txtDob1" ValidationGroup="CustomerRegistration">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="lblEmail" runat="server" Text="E-Mail Id"></asp:Label>
</td>
<td style="height: 21px">
<asp:TextBox ID="txtEmailId1" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Enter Correct Email Id" ControlToValidate="txtEmailId1" ValidationExpression="^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$" ValidationGroup="CustomerRegistration">*</asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label23" runat="server" Text="Country"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtCountry1" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ErrorMessage="Country field required" ControlToValidate="txtCountry1" ValidationGroup="CustomerRegistration1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label24" runat="server" Text="State"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtState1" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" ErrorMessage="State field required" ControlToValidate="txtState1" ValidationGroup="CustomerRegistration1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label25" runat="server" Text="City"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtCity1" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ErrorMessage="City field required" ControlToValidate="txtCity1" ValidationGroup="CustomerRegistration1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label27" runat="server" Text="Photo"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtPhoto1" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator25" runat="server" ErrorMessage="Should Upload Photo" ControlToValidate="txtPhoto1" ValidationGroup="CustomerRegistration1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label26" runat="server" Text="Contact Number"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtContactNo1" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator26" runat="server" ErrorMessage="Contact No field required" ControlToValidate="txtContactNo1" ValidationGroup="CustomerRegistration1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td>
<asp:Label ID="txtDisease" runat="server" Text="Disease"></asp:Label>
</td>
<td>
<asp:TextBox ID="txtDisease1" runat="server" Height="17px" Width="184px"></asp:TextBox>
</td>
<td>
<asp:RequiredFieldValidator ID="RequiredFieldValidator27" runat="server" ErrorMessage="Disease field required" ControlToValidate="txtDisease1" ValidationGroup="CustomerRegistration1">*</asp:RequiredFieldValidator>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<asp:ImageButton ID="imgSubmit1" runat="server" ImageUrl="Submit.gif" ValidationGroup="CustomerRegistration1" OnClick="imgSubmit1_Click"/>
</td>
</tr>
</asp:Panel>
<cc1:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BackGroundCssClass="modalPopUpBackGround" DropShadow="true" OkControlId="imgSubmit1" OnOkScript="ClickItem()" PopupControlId="pn1" TargetControlId="BtnClick">
</cc1:ModalPopupExtender>
</div>
</form>
</body>
</html>
<script language="javascript">
function ClickItem()
{
alert('U Clicked');
}
</script>
Error: Unrecognized tag prefix or device filter 'atlas'.
Unknown server tag 'atlas:ScriptManager'.