473,395 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How I can put aspx and .cs file in two separate projects for one application

390 Expert 256MB
I would like to develope one application in (asp.net 2.0)where I like to have my aspx files in website and my .cs files in a separate project.The reason I like to put .cs in a separate project is I do not want to give .cs files to my client while deploying my application in their server.

My problem is I like to create one debug env for these two .During the release i like to create the dll for the .cs file project in my website bin folder.

Please help me how to do that.
May 27 '08 #1
10 1450
DrBunchman
979 Expert 512MB
In order to keep your code private you should compile it into a dll which you say that you are already doing. You can debug your dll files alongside your normal code behind files in Visual Studio.

Dr B
May 27 '08 #2
mzmishra
390 Expert 256MB
how to debug the dll files along with normal code behind files .
Do I need to add both website and dll project in one solution
May 27 '08 #3
DrBunchman
979 Expert 512MB
I can only go from what I do with my own web projects but if I add a reference to a dll i've written then run my website in debug I can step through the dll as if it was code behind.

Does this work for you?

Dr B
May 27 '08 #4
mzmishra
390 Expert 256MB
I really do not know how to do that. I want the way you are doing in your project.Can you please advice me how exactly you are doing the same in your project.
May 27 '08 #5
Sick0Fant
121 100+
I really do not know how to do that. I want the way you are doing in your project.Can you please advice me how exactly you are doing the same in your project.
As unbelievable as it sounds, you can just open the dll in a different VS, put a breakpoint at wherever you want to step through, start both projects (F5), then when the code calls the method, it will allow you to step through the DLL's code... or at least that's what I remember. Confirmation, anyone?
May 27 '08 #6
Plater
7,872 Expert 4TB
If visual studio can figure out where the source code for the "compiled dll" is located, it will allow you to debug through it.

What I do for my own projects, is develop locally on one PC and then use the "publish" command to publish the "compiled" website to our real webserver. That way none of the backend files are on the server-side web. They get compiled into a DLL and stuck somewhere secure-like on the server computer.
May 27 '08 #7
mzmishra
390 Expert 256MB
well my problem is i already have that website and .cs project pre developed and deployed in many servers(that is the requirement of my client).But noone is able to debug the application.Now they want me to set up a debug env for this.

Any other idea?
May 28 '08 #8
Plater
7,872 Expert 4TB
well my problem is i already have that website and .cs project pre developed and deployed in many servers(that is the requirement of my client).But noone is able to debug the application.Now they want me to set up a debug env for this.

Any other idea?
Give them the source code and they can debug it with visual studio.
Seems like a bad idea to give your client development abilities, unless the project is open source.
May 28 '08 #9
mzmishra
390 Expert 256MB
the client wo n't debug the developers will debug it.
May 28 '08 #10
Plater
7,872 Expert 4TB
the client wo n't debug the developers will debug it.
Then give the developers the source code and they should be able to attach to the webapp and debug it.
May 28 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Paul | last post by:
Title: What are the Consequences of Aspx page separate from app DLL Hi JL; I am working on a big asp.net application. When we migrate the dll (or dlls) to the production server, all users who are...
7
by: Brian Sabolik | last post by:
I'm not sure if I've broken any Object Oriented rules or not, but ... I have projects in 2 different solutions that need to use each other's methods. Therefore I may have an "update" method in...
4
by: BH | last post by:
I'm looking at the source code of the ASP.NET forum sample application. It has the "code-behind" classes compiled into a separate DLL, totally separated from the aspx/ascx files. Adding the class...
0
by: Adam J. Schaff | last post by:
Hello all. I am part of a team about to start work on a large enterprise application. There will be a main application and a bunch of smaller applications that are all related and use the same...
8
by: Thomas Coleman | last post by:
Ok, I've obviously discovered that Global.aspx has been completely changed in ..NET 2.0. However, I haven't figured out how to declare a constant that's available to any page in my application...
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
4
by: Randall Parker | last post by:
XP Home does not come with IIS. Can one use VS 2003 or some other tool to view aspx pages one is developing and do that on XP Home without having IIS on the machine?
8
by: William Meitzen | last post by:
Does someone know how I can get two projects to share a common class? Something like this: solution WholeShmeer project1 code1 CommonClass project2 code2 CommonClass
2
by: Max2006 | last post by:
Hi, Is there any way to break a web application into separated web projects, so we can re-use pages\? I am trying to put aspx pages and/or ascx pages in separated web projects,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.