编译出错的问题

xiaomangxian 2009-01-08 04:13:44
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?>

请问正确的写法是?
...全文
50 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaomangxian 2009-01-08
  • 打赏
  • 举报
回复
明白了,谢谢
human_2 2009-01-08
  • 打赏
  • 举报
回复
Content 是什么东西啊,可能要指定引用.

111,130

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧