Sept. 2, 2006
I have a confession.... it seems like everytime I post here after being
thoroughly frustrated with a problem.... I then solve it within the next few
minutes/hours.......... which is the case now.
When .Net 2.0 re-arranged where files are located (like in App_Code,
etc)... I couldn't at first find my ASCX classes in Intellisense. I finally
found them under ASP.[ascx name], and so I used that...... which was the
problem. When they are put under ASP, they are given this name format (or so
it appears): ASP_[foldername]_[controlname]_ascx...... I finally figured out
that the correct location of the classes is [foldername]_[controlname].....
which is under the same namespaces which are imported, just like refering to
any other class object you would normally. What confused me until now, was
that when you create an ASCX control, it makes the class name Not what you
created it as... but [foldername]_[controlname].
Now I've finally figured out why I couldn't cast my Master pages to the
correct type either.... I was using the master page class "copy" under ASP.
lol
Hopefully this helps someone else! :-)
--
Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM
Web Site/Blog:
http://CactiDevelopers.ResDev.Net/
"Joseph Bittman MVP MCSD" <Ry*********@msn.comwrote in message
news:eQ*************@TK2MSFTNGP05.phx.gbl...
Sept. 2, 2006
I have a web site which I've created many user controls for... I keep
getting ASP.[web user control name].ascx is not defined errors... no
matter
what I do, I cannot figure out what is causing them.... what's worse, is
if
I have one of these errors, then it spawns more errors for different user
controls and how I need to add a reference to a weird assembly name (just
random numbers/letters) and Global.asax.
Here's an example:
e:\inetpub\wwwroot\CactiDevelopers\Product Guides\Headlines.aspx.vb(49,0):
error BC30002: Type 'ASP.product_guides_displayentry_ascx' is not defined.
Any ideas? I absolutely am stuck and searches aren't pulling anything
helpful up.
Thanks!
--
Joseph Bittman
Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM
Web Site/Blog: http://CactiDevelopers.ResDev.Net/