求教个问题

P_Zoo 2010-01-14 04:20:35
别人给我的一个新闻管理的后台 但是我编译的时候出这个错
怎么解决?
...全文
107 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
P_Zoo 2010-01-14
  • 打赏
  • 举报
回复
我自己改好了。。。还好反编译之后错误的地方不是很多
不然就。。。
蘋果虫 2010-01-14
  • 打赏
  • 举报
回复
别人的图片是防盗的。。。。。。。。。
mxc1225 2010-01-14
  • 打赏
  • 举报
回复
P_Zoo 2010-01-14
  • 打赏
  • 举报
回复
没有涉及
在base处按F12之后是跳进去试
// 摘要:
// 在可视化设计器中为 System.Web.UI.WebControls.Panel 控件提供设计时支持。
[Obsolete("The recommended alternative is PanelContainerDesigner because it uses an EditableDesignerRegion for editing the content. Designer regions allow for better control of the content being edited. http://go.microsoft.com/fwlink/?linkid=14202")]
public class PanelDesigner : ReadWriteControlDesigner
{
// 摘要:
// 初始化 System.Web.UI.Design.WebControls.PanelDesigner 类的新实例。
public PanelDesigner();

// 摘要:
// 将指定的属性和值映射到指定的标记样式。
//
// 参数:
// propName:
// 一个包含属性名的字符串。
//
// varPropValue:
// 作为属性值的对象。
protected override void MapPropertyToStyle(string propName, object varPropValue);
//
// 摘要:
// 当某一行为附加到设计器时提供通知。
[Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")]
protected override void OnBehaviorAttached();
}

这个代码是别人给我的 我反编译之后就是这样
_autotest 2010-01-14
  • 打赏
  • 举报
回复
把你这两个函数涉及到的代码贴出来看看
P_Zoo 2010-01-14
  • 打赏
  • 举报
回复
我的代码是这样的
public PagerDesigner()
{
base.set_ReadOnly(true);
}

public override string GetDesignTimeHtml()
{
this.wb = (Wuqi.Webdiyer.AspNetPager) base.get_Component();
this.wb.RecordCount = 0xe1;
StringWriter writer = new StringWriter();
HtmlTextWriter writer2 = new HtmlTextWriter(writer);
this.wb.RenderControl(writer2);
return writer.ToString();
}

就是 base.set_ReadOnly(true);和base.get_Component();报的错
mxc1225 2010-01-14
  • 打赏
  • 举报
回复
不明真相!!
mxc1225 2010-01-14
  • 打赏
  • 举报
回复
P_Zoo 2010-01-14
  • 打赏
  • 举报
回复
就是

C:\Documents and Settings\Administrator\桌面\新闻\Wuqi\Webdiyer\PagerDesigner.cs(14,18): 错误 CS0571: “System.Web.UI.Design.ControlDesigner.ReadOnly.set”: 无法显式调用运算符或访问器
C:\Documents and Settings\Administrator\桌面\新闻\Wuqi\Webdiyer\PagerDesigner.cs(19,56): 错误 CS0571: “System.ComponentModel.Design.ComponentDesigner.Component.get”: 无法显式调用运算符或访问器
mxc1225 2010-01-14
  • 打赏
  • 举报
回复
贴信息!看不见图片!
P_Zoo 2010-01-14
  • 打赏
  • 举报
回复
C:\Documents and Settings\Administrator\桌面\新闻\Wuqi\Webdiyer\PagerDesigner.cs(14,18): 错误 CS0571: “System.Web.UI.Design.ControlDesigner.ReadOnly.set”: 无法显式调用运算符或访问器
C:\Documents and Settings\Administrator\桌面\新闻\Wuqi\Webdiyer\PagerDesigner.cs(19,56): 错误 CS0571: “System.ComponentModel.Design.ComponentDesigner.Component.get”: 无法显式调用运算符或访问器

111,120

社区成员

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

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

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