Accessing namespaces referenced in codebehind of an ascx file

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
 
K

Karl Seguin [MVP]

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

Similar Threads


Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top