Nathan
Tue Jul 04 22:04:41 CDT 2006
Like I said before, that tutorial worked great, but there is one thing it
did not mention (or at least I did not notice it) that I am wondering how to
do. I noticed early on in my frustrations and attempts to find an answer
(before you showed me this one) that VB.NET 2005 used partial classes and
the *.aspx.vb file did not include the " Web Form Designer Generated Code "
region, which included the declarations for any controls used in the *.aspx
page. When I remove this region from my *.aspx.vb page, I recieve errors
saying:
Name 'mycontrolid' is not declared.
I am sure that this is simply because there are settings or something I need
to change or add that didn't get changed during the conversion to a Web
Application Project. Can anyone tell me what these might be? Thanks.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/
"jacky kwok" <jacky.kwok@nospam.nospam> wrote in message
news:eA9$XtwnGHA.4772@TK2MSFTNGP03.phx.gbl...
> Nathan Sokalski wrote:
>> Because I wanted the builds for my ASP.NET sites to be a single *.dll in
>> a /bin/ directory (like VSNET 2003), I decided to try the Web Application
>> Project download. However, I am still pulling my hair out because it
>> doesn't want to recognize any of the Controls (not even the ones that are
>> part of ASP.NET). All of the Controls show the following error:
>>
>> Name 'mycontrolid' is not declared.
>>
>> And my UserControls show the following error (all my UserControls are in
>> the same directory as my Pages and I do have them registered with the
>> register directive):
>>
>> Element 'myusercontrolclassname' is not a known element. This can occur
>> if there is a compilation error in the Web site.
>>
>> Can anybody help me find an easy way to move my 2003 ASP.NET code to
>> Visual Studio .NET 2005 and be able to have a single *.dll generated?
>> Thanks.
>
>
> try to read the tutorial in
>
>
http://webproject.scottgu.com/CSharp/Default.aspx
>
> I follow the tutorial and I have no problem in converting 2003 project to
> 2005 Web App project.
>
>
>
> --
> Jacky Kwok
> jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk
> jacky@compose_DOT_com_DOT_hk