当前位置:编程学习 > C#/ASP.NET >>

日历调用

编译器错误消息: CS0433: 类型“Meta.Web.Controls.DropDownCalendar”同时存在于“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\calendar\5186bca4\e656e632\assembly\dl3\ea2ae00b\0093d445_327fc701\Meta.Web.DLL”和“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\calendar\5186bca4\e656e632\App_Code.qn0naueh.dll”中

源错误:

 

行 12:     <asp:TextBox ID="TextBox1" runat="server" Width="141px"></asp:TextBox>
行 13:         <asp:Button ID="Button1" runat="server" Text="测试" OnClick="Button1_Click" Width="123px" />
行 14:         <mc:DropDownCalendar ID="DropDownCalendar1" runat="server" Height="1px" 
行 15:         Width="152px" BackColor="#FFFFC0" BorderColor="ButtonFace" BorderStyle="Inset" 
行 16:         BorderWidth="2px">
 
--------------------编程问答-------------------- --------------------编程问答-------------------- http://www.cnblogs.com/dam889/archive/2009/07/15/1524038.html --------------------编程问答-------------------- 命名重复,修改ID --------------------编程问答-------------------- 正确
引用 3 楼 wuyq11 的回复:
命名重复,修改ID
--------------------编程问答-------------------- 命名不重复,,, --------------------编程问答-------------------- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="canlendar.aspx.cs" Inherits="canlendar"%>
<%@ Register Assembly ="Meta.Web" Namespace ="Meta.Web.Controls" TagPrefix ="mc" %>

<!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>无标题页</title>
</head>
<body>
   <form id="form1" runat="server">
    <asp:TextBox ID="TextBox1" runat="server" Width="141px"></asp:TextBox>
        <asp:Button ID="Button1" runat="server" Text="测试" OnClick="Button1_Click" Width="123px" />
        <mc:DropDownCalendar ID="DropDownCalendar9" runat="server" Height="1px" 
        Width="152px" BackColor="#FFFFC0" BorderColor="ButtonFace" BorderStyle="Inset" 
        BorderWidth="2px">
            <WeekendDayStyle BackColor="#C0FFFF" ForeColor="Brown" />
            <TitleStyle BackColor="#C00000" ForeColor="White" />
            <DayHeaderStyle BackColor="#C0C0FF" />
            <DateStyle BackColor="#FFFFC0" />
        </mc:DropDownCalendar>
       
        <br /> --------------------编程问答-------------------- 那位朋友可以帮帮我啊。。。谢啦
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,