using calendar extendar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sweatha
    New Member
    • Mar 2008
    • 44

    using calendar extendar

    Hi

    I have used a calendar extendar in my form. For that I have added a script manager. but if I add that I am having a error in designing in scriptmanager itself.
    My coding is
    Code:
     
    <%@ Page Language="VB" AutoEventWireup="false" CodeFile="commision.aspx.vb" Inherits="commision" %>
      
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
    <%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
     
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitled Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:Label ID="Label1" runat="server" Style="z-index: 100; left: 125px; position: absolute;
    top: 99px" Text="Commission"></asp:Label>
    &nbsp;
    <asp:TextBox ID="txtCommission" runat="server" Style="z-index: 101; left: 217px;
    position: absolute; top: 95px"></asp:TextBox>
    <asp:TextBox ID="txtDate" runat="server" Style="z-index: 102; left: 217px; position: absolute;
    top: 129px"></asp:TextBox>
    <asp:Label ID="Label2" runat="server" Style="z-index: 103; left: 123px; position: absolute;
    top: 129px" Text="Date"></asp:Label>
    <asp:Button ID="btncommission" runat="server" Style="z-index: 105; left: 239px; position: absolute;
    top: 207px" Text="Add" />
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <br />
    <cc1:CalendarExtender ID="CalendarExtender1" runat="server">
    </cc1:CalendarExtender>
     
     
    </div>
    </form>
    </body>
    </html>
    error is
    server tag asp:script manager is ambiguous. Please modify the associated registration that is causing ambiguity & pick a new tag prefix.
    Last edited by DrBunchman; Jul 30 '08, 12:47 PM. Reason: Added [Code] Tags - Please use the '#' button
  • DrBunchman
    Recognized Expert Contributor
    • Jan 2008
    • 979

    #2
    Change the tag prefix property in line 5 above to something other than 'asp' and amend the script manager tag accordingly - this should prevent the error from occurring.

    Hope this helps,

    Dr B

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      I'm not sure why you have:
      [code=asp]
      <%@ Register Assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral , PublicKeyToken= 31bf3856ad364e3 5" Namespace="Syst em.Web.UI" TagPrefix="asp" %>[/code]

      Check your web.config <assemblies> section and see if you have:
      [code=xml]
      <assemblies>
      <add assembly="Syste m.Web.Extension s, Version=3.5.0.0 , Culture=neutral , PublicKeyToken= 31BF3856AD364E3 5"/>
      </assemblies>[/code]

      If not, add it. Then remove the...
      [code=asp]
      <%@ Register Assembly="Syste m.Web.Extension s, Version=1.0.610 25.0, Culture=neutral , PublicKeyToken= 31bf3856ad364e3 5" Namespace="Syst em.Web.UI" TagPrefix="asp" %>[/code]
      ...from your asp page.

      -Frinny

      Comment

      Working...