Problem with <atlas:ScriptManager>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suganya
    New Member
    • Dec 2006
    • 39

    Problem with <atlas:ScriptManager>

    Hi

    I have written the code for Atlas ModalPopup Control . The code is as follows

    <%@ Page Language="C#" AutoEventWireup ="true" CodeFile="Defau lt.aspx.cs" Inherits="_Defa ult" %>

    <%@ Register Assembly="AjaxC ontrolToolkit" Namespace="Ajax ControlToolkit" 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>Untitl ed Page</title>
    <link href="Site.css" rel="stylesheet " type="text/css" />

    </head>
    <body>
    <form id="form1" runat="server">
    <%-- <asp:ScriptMana ger ID="ScriptManag er1" runat="server" />--%>
    <div>
    <atlas:ScriptMa nager ID="sm1" runat="Server" EnablePartialUp dates="true"/>
    <%-- <asp:ScriptMana ger ID="scriptManag er2" runat="server" EnablePartialRe ndering="True" EnablePageMetho ds="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="#C0F FC0">
    <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:RequiredFi eldValidator ID="RequiredFie ldValidator6" runat="server" ErrorMessage="N ame Feild cannot be blank" ControlToValida te="txtName1" ValidationGroup ="CustomerRegis tration">*</asp:RequiredFie ldValidator>
    </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:RequiredFi eldValidator ID="RequiredFie ldValidator7" runat="server" ErrorMessage="U ser Id fields cannot be blank" ControlToValida te="txtUserId2 " ValidationGroup ="CustomerRegis tration">*</asp:RequiredFie ldValidator></td>
    </tr>
    <tr>
    <td>

    <asp:Label ID="lblPassword 1" runat="server" Text="Password" ></asp:Label>
    </td>
    <td>
    <asp:TextBox ID="txtPassword 2" runat="server" Height="17px" Width="184px"></asp:TextBox>
    </td>
    <td>
    <asp:RequiredFi eldValidator ID="RequiredFie ldValidator8" runat="server" ErrorMessage="P assword field cannot be blank" ControlToValida te="txtPassword 2" ValidationGroup ="CustomerRegis tration">*</asp:RequiredFie ldValidator>
    </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:RequiredFi eldValidator ID="RequiredFie ldValidator9" runat="server" ErrorMessage="S ex field cannot be blank" ControlToValida te="txtSex1" ValidationGroup ="CustomerRegis tration">*</asp:RequiredFie ldValidator>
    </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:RequiredFi eldValidator ID="RequiredFie ldValidator10" runat="server" ErrorMessage="D OB field cannot be blank" ControlToValida te="txtDob1" ValidationGroup ="CustomerRegis tration">*</asp:RequiredFie ldValidator>
    </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:RegularExp ressionValidato r ID="RegularExpr essionValidator 2" runat="server" ErrorMessage="E nter Correct Email Id" ControlToValida te="txtEmailId1 " ValidationExpre ssion="^[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 ="CustomerRegis tration">*</asp:RegularExpr essionValidator >
    </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:RequiredFi eldValidator ID="RequiredFie ldValidator22" runat="server" ErrorMessage="C ountry field required" ControlToValida te="txtCountry1 " ValidationGroup ="CustomerRegis tration1">*</asp:RequiredFie ldValidator>
    </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:RequiredFi eldValidator ID="RequiredFie ldValidator23" runat="server" ErrorMessage="S tate field required" ControlToValida te="txtState1" ValidationGroup ="CustomerRegis tration1">*</asp:RequiredFie ldValidator>
    </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:RequiredFi eldValidator ID="RequiredFie ldValidator24" runat="server" ErrorMessage="C ity field required" ControlToValida te="txtCity1" ValidationGroup ="CustomerRegis tration1">*</asp:RequiredFie ldValidator>
    </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:RequiredFi eldValidator ID="RequiredFie ldValidator25" runat="server" ErrorMessage="S hould Upload Photo" ControlToValida te="txtPhoto1" ValidationGroup ="CustomerRegis tration1">*</asp:RequiredFie ldValidator>
    </td>

    </tr>
    <tr>
    <td>
    <asp:Label ID="Label26" runat="server" Text="Contact Number"></asp:Label>
    </td>
    <td>
    <asp:TextBox ID="txtContactN o1" runat="server" Height="17px" Width="184px"></asp:TextBox>
    </td>
    <td>
    <asp:RequiredFi eldValidator ID="RequiredFie ldValidator26" runat="server" ErrorMessage="C ontact No field required" ControlToValida te="txtContactN o1" ValidationGroup ="CustomerRegis tration1">*</asp:RequiredFie ldValidator>
    </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:RequiredFi eldValidator ID="RequiredFie ldValidator27" runat="server" ErrorMessage="D isease field required" ControlToValida te="txtDisease1 " ValidationGroup ="CustomerRegis tration1">*</asp:RequiredFie ldValidator>
    </td>
    </tr>
    <tr>
    <td colspan="2" align="center">
    <asp:ImageButto n ID="imgSubmit1 " runat="server" ImageUrl="Submi t.gif" ValidationGroup ="CustomerRegis tration1" OnClick="imgSub mit1_Click"/>
    </td>
    </tr>
    </asp:Panel>

    <cc1:ModalPopup Extender ID="ModalPopupE xtender1" runat="server" BackGroundCssCl ass="modalPopUp BackGround" DropShadow="tru e" OkControlId="im gSubmit1" OnOkScript="Cli ckItem()" PopupControlId= "pn1" TargetControlId ="BtnClick">
    </cc1:ModalPopupE xtender>

    </div>
    </form>
    </body>
    </html>
    <script language="javas cript">
    function ClickItem()
    {
    alert('U Clicked');
    }
    </script>

    Error: Unrecognized tag prefix or device filter 'atlas'.
    Unknown server tag 'atlas:ScriptMa nager'.
Working...