Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 7th, 2004, 05:57 PM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Marenela

If you right click on the white folder icon you are given an option to include it as part of the project. It then changes colour and becomes accessable as a normal folder.


Lynn
 
Old September 7th, 2004, 08:56 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Just make sure you push the "Show All Files" button in Solution Explorer, and it will show the files and let you edit them.

If you insist on making the controls part of the project, then you need to set the "Build Action" property to "Content" or "None" on these files to prevent them from being compiled with your project.

Eric
 
Old September 8th, 2004, 05:15 AM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

 Now I understand that these User Controls are part of a project lives inside a folder inside the main startup project "thePhile". and I read the article "Creating Multiple Projects in ASP.NET" that was my point. now I want to understand how to add these user controls from thier project to the main project "thePhile". and why they are not compiled in the bin folder of thier project??????????
Thanks
Marenela

 
Old September 8th, 2004, 07:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I made a small oversight - the codebehind of user controls can be compiled into the main DLL, or deployed as source files to the web server. The choice of how to handle the code-behind files depends on the attributes in the @CONTROL directive in the .ascx file.

If you see INHERITS=, then the code-behind of that control does need to be compiled with the project. If you see SRC= instead of INHERITS=, then you deploy the source to the web server.

The .ascx files are always deployed with SRC= in the @REGISTER directive of the host page. This is what I was thinking about when I answered this question.

The default in VS 2003 is to use INHERITS= for the code-behind and SRC= for the .ascx. The default in VS 2005 is to use SRC= for everything.

As I said before, I really think you could use some more experience with smaller projects. It's very hard for me to teach you everything in this forum :-)

Please email me offline if you need help that isn't specific to this project. The people who read this forum are only interested in ThePhile.

Eric
 
Old September 8th, 2004, 08:05 AM
Authorized User
 
Join Date: Aug 2004
Posts: 82
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Eric,

 Eric I study 16 hours daily. I'm getting a good foundation believe me and your help save me a great time too :-). Anyway, I don't have your e-mail to e-mail you offline. please send me an empty message to csharpcoding@yahoo.com ok?
Thanks again
Marenela






Similar Threads
Thread Thread Starter Forum Replies Last Post
Question for Chapter2 NameSpace and Fold structure lovehorse BOOK: ASP.NET Website Programming Problem-Design-Solution 1 October 16th, 2006 08:21 AM
Still confused Folder structure eureka BOOK: ASP.NET Website Programming Problem-Design-Solution 5 September 14th, 2004 11:37 PM
C# folder and project structure organicglenn BOOK: ASP.NET Website Programming Problem-Design-Solution 3 September 7th, 2004 09:47 PM
thePhile (VB) file folder structure... jaspe BOOK: ASP.NET Website Programming Problem-Design-Solution 1 September 1st, 2004 08:24 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.