tags:

views:

285

answers:

1

I know that if I created a custom control, say MyLabel in App_Code ..

namespace MyNamespace 
{
  public class MyLabel : Label { .. }
}

To access this control in my page, I would use this directive ..

<%@ Register tagPrefix="foo" Namespace="MyNamespace" %>

If I did not provide a namespace (MyNamespace), how do I write the Register directive?

Thanks so much.

+1  A: 
<%@ Register tagPrefix="foo" %>

(you might need a tagName value also.)

marcc
wow, it actually worked! thanks a lot! i can access MyLabel from the aspx page using the code you provided above. before, I was putting "MySite.App_Code" for the namespace and it does not work. anyway .. thanks marcc!
ban-G