首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

petshop中关于用户控件有关问题

2012-01-16 
petshop中关于用户控件问题petshop中controls\productscontrol.ascx,在设计器中,有一个customlist-product

petshop中关于用户控件问题
petshop   中controls\productscontrol.ascx,在设计器中,有一个customlist-productslist,是用户控件吧。那么它是怎么跑到设计器上去的?

本人初学.net、petshop,特希望高人指点

[解决办法]
在页面上注册一下就可以使用用户控件了
<%@Register src= "controls\productscontrol.ascx " TagName= "myUserControl " Prefix= "pf " %>
使用的时候: <pf:myUserControl id= "usercontrolID " runat= "server "> <pf:myUserControl />
[解决办法]
在同一个项目下,编译后就上去了。
不同项目下,添加引用。
还有可以从选项卡上右键附加。

热点排行