zoukankan
html css js c++ java
自定义控件无法在VS.net编辑中显示
自己写了一个用户控件,拖入到编辑框只有如下图的样子,连鼠标都无法选中,怎么解决?
----------图片下方--------------------
而正常的控件应该是:
===============
update by rock jing on 2004-9-25
===============
我定义了设计时的类,用来显示,设计时候控件显示的模样。
public
class
SampleDesign
{
public
class
SampleDesigner : System.Web.UI.Design.ControlDesigner
{
public
override
string
GetDesignTimeHtml()
{
//
Component is the control instance, defined in the base
//
designer
MyLabel myLable
=
(MyLabel)
this
.Component;
string
html
=
myLable.GetHtml();
return
html;
}
protected
override
string
GetEmptyDesignTimeHtml()
{
String html
=
base
.GetEmptyDesignTimeHtml ();
html
=
"
<input type='text'
"
+
html
+
"
>
"
;
return
html;
}
protected
override
string
GetErrorDesignTimeHtml(Exception e)
{
String html
=
base
.GetErrorDesignTimeHtml (e);
html
=
"
<input type='text'
"
+
html
+
"
>
"
;
return
html;
}
}
}
结果,出现了创建控件出错。指定转换无效
查看全文
相关阅读:
openlayers6聚合图(附源码下载)
arcgis api 4.x for js地图加载第三方矢量切片
leaflet读取tif像素值的两种实现方式(附源码下载)
openlayers6热力图(附源码下载)
cesium 3dtiles模型单体化点击高亮效果
leaflet聚合图功能(附源码下载)
openlayers6绘制扇形(附源码下载)
【 Windows 10】神州网信政府版官方镜像
Windows10 解决“装了 .NET Framework 4.5.2/4.6.1/4.7.1等等任何版本 或版本更高的更新”问题
App.config/Web.config 中特殊字符的处理
原文地址:https://www.cnblogs.com/king_astar/p/46519.html
最新文章
Elasticsearch从入门到精通之Elasticsearch集群内的原理
ORACLE工作原理小结
译自如何将Spring Cloud应用程序从Spring Boot 1.2迁移到1.3
架构设计系列-前端模式的后端(BFF)翻译PhilCalçado
Redis常用命令
DB2 表空间和缓冲池
在Sitecore8.2解决方案中使用Swagger作为API管理工具
Eureka配置
展现量、点击量、点击率;访客数、访问次数、浏览量的区别与作用
SpringCloud之Eureka详细的配置
热门文章
数据结构系列-二叉树
数据结构系列-树
用户体验之如何明确定义了目标受众
用户体验之认知地图、思维导图和概念图
sitecore系列教程场所分类简介
GIS之家小专栏,相关文章尾部提供源码demo下载,订阅赠送arcgis10.5整套安装包(arcgis、arcgis server以及portal),包括破解许可永久期限
GIS之家资源
GIS之家demo源代码咨询
cesium流动纹理
leaflet热力图功能(附源码下载)
Copyright © 2011-2022 走看看