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;
}
}
}
结果,出现了创建控件出错。指定转换无效
查看全文
相关阅读:
解释*args和**kwargs的含义
字典推导式创建字典
返回json格式数据乱码
DataTables warning: table id=data-table
echart折线图,柱状图,饼图设置颜色
No mapping found for HTTP request with URI
[Err] 1111
echart提示框内容数据添加单位
rg.apache.ibatis.binding.BindingException: Mapper method 'com.dao.Cameao.getOnlineDayRation attempted to return null from a method with a primitive return type (float)
bootstrap datarangepicker如何使用
原文地址:https://www.cnblogs.com/king_astar/p/46519.html
最新文章
Linux中的TUN/TAP设备
网络包处理工具NetBee
make xconfig时,出现“Unable to find any QT installation"错误
关于“wining attitude”
Erlang之父的学习历史及学习建议
git使用记录
关于clonezilla
mongodb安装配置
[Spring]IoC容器之进击的注解
[Spring]支持注解的Spring调度器
热门文章
[Java 安全]消息摘要与数字签名
[Java 安全]加密算法
怎么把字符串转换成小写或大写等等
怎么移除一个字符串中的前导空格
python中的标识符长度能有多长
python区分大小写吗
解释python中join()和split()函数
什么操作能在原有列表上打乱一个列表的元素
什么是负索引
请写一个python逻辑,计算一个文件中的大写字母数量
Copyright © 2011-2022 走看看