Connecting Tech Pros Worldwide Help | Site Map

Old website mix with asp.net 2

Alan T
Guest
 
Posts: n/a
#1: Feb 20 '07
I have a legacy website has only html, how do I add a asp.net pages (.aspx)
to that and develope in VS 2005?


Jon Paal
Guest
 
Posts: n/a
#2: Feb 20 '07

re: Old website mix with asp.net 2


http://msconline.maconstate.edu/tutorials/default.aspx



"Alan T" <alanpltseNOSPAM@yahoo.com.auwrote in message news:eLUBmQKVHHA.4832@TK2MSFTNGP04.phx.gbl...
Quote:
>I have a legacy website has only html, how do I add a asp.net pages (.aspx) to that and develope in VS 2005?
>

Alan T
Guest
 
Posts: n/a
#3: Feb 20 '07

re: Old website mix with asp.net 2


This is my exact question:

I tried to create the new website in VS 2005, then add my new aspx pages, it
fine, I can compile and run.
The next question comes up, when I implement my C# class, eg. the namespace
is Employee.
In the code-behind, I want to include the "Employee" namespace in the using
clause but the compilar did not find that.


"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message
news:%23CMtrtKVHHA.4796@TK2MSFTNGP05.phx.gbl...
Quote:
http://msconline.maconstate.edu/tutorials/default.aspx
>
>
>
"Alan T" <alanpltseNOSPAM@yahoo.com.auwrote in message
news:eLUBmQKVHHA.4832@TK2MSFTNGP04.phx.gbl...
Quote:
>>I have a legacy website has only html, how do I add a asp.net pages
>>(.aspx) to that and develope in VS 2005?
>>
>
>

Jon Paal
Guest
 
Posts: n/a
#4: Feb 20 '07

re: Old website mix with asp.net 2


sorry, I don't use codebehind or c#


"Alan T" <alanpltseNOSPAM@yahoo.com.auwrote in message news:OVe5YBLVHHA.388@TK2MSFTNGP04.phx.gbl...
Quote:
This is my exact question:
>
I tried to create the new website in VS 2005, then add my new aspx pages, it fine, I can compile and run.
The next question comes up, when I implement my C# class, eg. the namespace is Employee.
In the code-behind, I want to include the "Employee" namespace in the using clause but the compilar did not find that.
>
>
"Jon Paal" <Jon[ nospam ]Paal @ everywhere dot comwrote in message news:%23CMtrtKVHHA.4796@TK2MSFTNGP05.phx.gbl...
Quote:
>http://msconline.maconstate.edu/tutorials/default.aspx
>>
>>
>>
>"Alan T" <alanpltseNOSPAM@yahoo.com.auwrote in message news:eLUBmQKVHHA.4832@TK2MSFTNGP04.phx.gbl...
Quote:
>>>I have a legacy website has only html, how do I add a asp.net pages (.aspx) to that and develope in VS 2005?
>>>
>>
>>
>
>

Laurent Bugnion [MVP]
Guest
 
Posts: n/a
#5: Feb 20 '07

re: Old website mix with asp.net 2


Hi,

Alan T wrote:
Quote:
This is my exact question:
>
I tried to create the new website in VS 2005, then add my new aspx pages, it
fine, I can compile and run.
The next question comes up, when I implement my C# class, eg. the namespace
is Employee.
In the code-behind, I want to include the "Employee" namespace in the using
clause but the compilar did not find that.
Did you include a reference to the DLL containing the Employee
namespace? The "using" directive is not doing that, it's merely a scope
information, avoiding that you have to write fully qualified names all
the time. When you want to use classes defined in an external assembly,
you must add a reference to it in your project. To do this, right-click
on the "References" folder in Visual Studio's solution explorer.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Closed Thread