Old website mix with asp.net 2

A

Alan T

I have a legacy website has only html, how do I add a asp.net pages (.aspx)
to that and develope in VS 2005?
 
A

Alan T

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.
 
J

Jon Paal

sorry, I don't use codebehind or c#


Alan T said:
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.
 
L

Laurent Bugnion [MVP]

Hi,

Alan said:
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
 

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

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top