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;
}
}
}
结果,出现了创建控件出错。指定转换无效
查看全文
相关阅读:
[2017-7-28]Android Learning Day7
Codeforces Round #402 (Div. 2) D. String Game
POJ2411 铺地砖 Mondriaan's Dream
《大型网站系统架构的演化》
Nginx 引入线程池,提升 9 倍性能
《淘宝消息中间件概述》2015-07-11
主从复制源代码分析
深入剖析Redis主从复制
主从复制配置
Redis启动多端口、运行多实例
原文地址:https://www.cnblogs.com/king_astar/p/46519.html
最新文章
8659 Mine Sweeping
hdu 1520 Anniversary party 基础树dp
10324 Global Warming dfs + 二分
1140 分珠 dfs
17996 Daily Cool Run (dp)
Nico Nico Ni~(完全背包)
hdu 1059 Dividing
hdu 1114 Piggy-Bank
hdu 1069 Monkey and Banana
hdu 1078 FatMouse and Cheese
热门文章
hdu 2102 A计划-bfs
CodeForces 520B Two Buttons
滑雪(简单dp)
寒冰王座(DGA最长路/完全背包)
汇编
诶西,JavaScript学习记录。。。。。。
python requests库学习
python服务器文件上传下载+GUI【tkinter】
[2017-8-02]Android Learning Day9
[2017-8-02]Android Learning Day8
Copyright © 2011-2022 走看看