1

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

mSafdel
  • 1,527
  • 4
  • 15
  • 25

2 Answers2

2

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

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

Faruz
  • 9,909
  • 10
  • 48
  • 66
1

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

Matt Greer
  • 60,826
  • 17
  • 123
  • 123