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;
}
}
}
结果,出现了创建控件出错。指定转换无效
查看全文
相关阅读:
HRBUST 1377 金明的预算【DP】
POJ 1745 Divisibility【DP】
HRBUST 1476 教主们毕业设计排版==算法导论上的思考题整齐打印
HRBUST 1220 过河【DP+状态】
HRBUST 1478 最长公共子序列的最小字典序
HRBUST 1162 魔女【DP】
HDU 1561The more, The Better【DP】
HRBUST 1376 能量项链【DP】
POJ 1934 Trip【最长公共子序列输出】
上传图片代码总结
原文地址:https://www.cnblogs.com/king_astar/p/46519.html
最新文章
sql语法
SVM
java 文件输出 换行
mysql语法
[Java] ConcurrentMap 分析和思考
mysql中TINYINT的取值范围
Java集合容器简介
有用的视频链接
ConcurrentHashMap,一个更快的HashMap
log4j.xml如何配置
热门文章
eclipse自动添加注释方法
枚举与普通类的区别
map.entry<k,v>小用法(转)
BeanUtils.copyProperties()的用法
oracle:游标操作,cursor
oracle:触发器,自治事务,instead of trigger,trigger
oracle:commit,rollback,savepoint
oracle:游标,cursor
oracle:case 语句使用
HDU 1011 Starship Troopers【DP】
Copyright © 2011-2022 走看看