问题
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