从 HtmlImage 控件派生的自定义 HTMLControl 在 VS2008 工具箱中不可见
我有一个派生自 HtmlImage 控件的自定义控件,它无法显示在工具箱上,它说“'...\bin\Debug\ImageCustomControl.dll' 中没有可以放置在工具箱上的组件。”。
这是该控件的代码:
namespace ImageCustomControl
{
public class ImageHtmlControl : HtmlImage
{
public override void RenderControl(HtmlTextWriter writer)
{
this.Src = "https://somedomain.com" + this.Src;
base.RenderControl(writer);
}
}
}
这是 2003 年发回的帖子,说这是不可能的,但只是想知道自此以来它是否已更改: http://www.microsoft.com/mspress/books/sampchap/5728d.aspx
提前致谢。
I have a custom control deriving from HtmlImage control which I cant get to show up on toolbox, it says "There are no components in '...\bin\Debug\ImageCustomControl.dll' that can be placed on the toolbox.".
Here is the code for the control:
namespace ImageCustomControl
{
public class ImageHtmlControl : HtmlImage
{
public override void RenderControl(HtmlTextWriter writer)
{
this.Src = "https://somedomain.com" + this.Src;
base.RenderControl(writer);
}
}
}
Here is a post back from 2003 that says its not possible, but just wanted to know if it has changed since: http://www.microsoft.com/mspress/books/sampchap/5728d.aspx
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论