Accessing namespaces referenced in codebehind of an ascx file

  • Thread starter Thread starter newjazzharmony
  • Start date Start date
N

newjazzharmony

I have included a namespace in the "using" statements at the top of the
codebehind page for an ascx page (user control).

How can I access the objects in this namespace from the ascx page
itself?

Thanks,

Jonathan
 
You need to add a @Import directive to the ascx page..

<%@ Import Namespace="Blah.Blah" %>

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top