create a component entitiy
-
domingo, 11 de marzo de 2012 20:44I have created a web site. I want to now create a Class Library project, build the Class Library prject, and then add a referene to this project in the solution for my web site.. I am brand new to Visual Studio 2010.
Todas las respuestas
-
domingo, 11 de marzo de 2012 22:11That's great. All that can be done exactly the way you describe it. But then I don't know what the question is.
Jose R. MCP
-
martes, 13 de marzo de 2012 7:04Moderador
I think you are looking for something like 3-tier architecture.
Here are some materials for your reference:
http://en.wikipedia.org/wiki/Multitier_architecture (General description)
http://www.dotnetfunda.com/articles/article71.aspx (a guid line of ASP.Net web application)
http://social.msdn.microsoft.com/Forums/en-US/winformsapplications/thread/2c15af26-7758-4268-9568-5932225cca32 (a similar case in MSDN forum)
http://msdn.microsoft.com/en-us/library/windows/desktop/ms685068(v=vs.85).aspx ( a guid line in windows desk appliction developing)
http://www.codeproject.com/Articles/10941/Three-Tier-Code-Generator-For-ASP-NET ( an example about using 3-tier)
Hope it helps.
Best Regards,
Rocky Yue[MSFT]
MSDN Community Support | Feedback to us
- Marcado como respuesta Lie YouModerator lunes, 19 de marzo de 2012 5:08
-
martes, 13 de marzo de 2012 7:41
I create the web site project. I then add the class library project. when I go to Solution Explorer and right click the web site, then click "Add references" , under the Projects tab, my class library project does not show up. my web site has a default aspx page. I am probably forgetting something simple. I am brand new to VS. also, when I create my web site, in Solution Explorer, i do not havea Solutions folder being shown.
I started by creating a web site thru File, New Web Site, instead of creating a new web application.
-
martes, 13 de marzo de 2012 8:24Moderador
We always do it with the below steps:
1. Build the class library. Right click the class library -> build
2. Add reference to the web site. Right click the web application -> Add references-> from project.
To build a solution, just perss F6 or at the menu bar click the build tab-> build solution. As default, it shoule be under
C:\Users\username\Documents\Visual Studio 2010\Projects\project name
Hope it helps.
Edit: I also would suggest you to try ASP.Net forums for better support, where experts live in.
Best Regards,
Rocky Yue[MSFT]
MSDN Community Support | Feedback to us
- Editado Lie YouModerator martes, 13 de marzo de 2012 8:25
- Marcado como respuesta Lie YouModerator lunes, 19 de marzo de 2012 5:08
-
martes, 13 de marzo de 2012 13:41
Don't create a website project. Instead, create a Web Application project. They are a bit different, but the latter is much better.Jose R. MCP
- Marcado como respuesta Lie YouModerator lunes, 19 de marzo de 2012 5:08

