首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

编译出错的有关问题

2012-01-19 
编译出错的问题using Systemusing System.Web.UInamespace MyContent{public class LittleContent:Conte

编译出错的问题
using System;
using System.Web.UI;
namespace MyContent
{
  public class LittleContent:Content
  {
  protected override void Render(HtmlTextWriter writer)
  {
  writer.Write("<textarea id='content' name='content'></textarea>");
  }
  }
}

这个是我的一个类的代码,我有两个问题,一个是,我在编译(csc成dll)这个类的时候,出错了,提示我 the type or namespace name 'Content' could not be found <are you missing a using> directive or an assembly refernce?>

请问正确的写法是?

[解决办法]
Content 是什么东西啊,可能要指定引用.

热点排行