namespace in asp.net usercontrol

北城余情 提交于 2019-12-24 14:34:54

问题


I make a asp.net usercontrol. its name is ucTreeview. in my page it named: uc1:ucTreeview How can i rename uc1?


回答1:


When you register the control you're declaring prefix using <%@ Register ...

http://www.15seconds.com/Issue/020319.htm




回答2:


You need to use the assembly:TagPrefixAttribute This page on MSDN is a concise example of how to do that.



来源:https://stackoverflow.com/questions/1635418/namespace-in-asp-net-usercontrol

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!