Re: Cannot get a handle on web UserControls in ASP 2.0
- From: Greg Smalter <GregSmalter@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 3 Jul 2005 20:19:01 -0700
That explains a little about how the compilation models are different, but it
doesn't mention namespaces or how to address a transition. Good information
though, thanks.
I still need a way to make my existing ASP 1.1 framework web sites work in
ASP 2.0 by resolving this namespace issue and getting a handle on control
classes. It seems possible, because if I create a new web site and create a
control loose in the root, I can access it statically from the default page.
But if I create it in a folder, I can't. And there's no way for me to find
out what namespace it's using for the control in the folder, either. I need
to be able to statically access control classes no matter where they are,
like I used to.
Thank you.
Greg Smalter
"clintonG" wrote:
> The verbiage in the page directive has changed in beta 2. This article [1]
> may help. What bothers me is there does not appear to be a central location
> where changes have been documented. This of course is FUBAR.
>
> I'm going to post to MSDN Product Feedback [2] and ask for a centralized
> page or blog that tracks changes and ask you to do the same
>
> <%= Clinton Gallagher
> METROmilwaukee (sm) "A Regional Information Service"
> NET csgallagher AT metromilwaukee.com
> URL http://metromilwaukee.com/
> URL http://clintongallagher.metromilwaukee.com/
>
> [1] http://west-wind.com/weblog/posts/2122.aspx
> [2] http://lab.msdn.microsoft.com/ProductFeedback/Default.aspx
>
> "Greg Smalter" <GregSmalter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:849EFE04-DA63-4F68-BCAD-706942B75484@xxxxxxxxxxxxxxxx
> > I'm converting some ASP web projects from VS 2003 to VS2005/ASP 2.0. The
> > worst problem I've run into is all references (in codebehind CS files) to
> > UserControls fail.
> >
> > I get the error "The type or namespace 'MyUserControl' does not exist in
> > the
> > namespace 'The.Correct.Namespace' (are you missing an assembly
> > reference?)"
> > even though the user control in question is named 'MyUserControl' and is
> > explicitly wrapped in the namespace block 'namespace The.Correct.NameSpace
> > {'. And, obviously, it worked in the previous framework so it's not a
> > typo.
> >
> > Is there an approach for overcoming this conversion issue?
> >
> > Thank you.
> >
> > Greg Smalter
>
>
>
.
- Prev by Date: hyperlink in repeater...what if url is dbNull ??
- Next by Date: Re: Upgrading from IIS 5.1 to IIS 6.0 How? Where?
- Previous by thread: hyperlink in repeater...what if url is dbNull ??
- Next by thread: Re: Cannot get a handle on web UserControls in ASP 2.0
- Index(es):
Relevant Pages
|