473,385 Members | 1,282 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,385 software developers and data experts.

Some Advice

Can anyone offer some advice on this.

I have a large web based application, 100+ aspx pages, 100's of
webUserControls etc. While all of the system is structued & layered as n-tier
we cannot seem to spilt the web application up into discreet modules. i.e.
there is a core services framework that all areas of the application use but
majoiry of the modules we have in the application are standalone or talk to
other modules through variuos interfaces.

However I would like like to stop deveoping this as a single humongous web
site (as it keeps on growing) and develop individual web application modules
that can be more easily version controlled. As you can imagine one change
means a complete upgrade of an enitire site rather than just a small module.

It seems very difficult (impossible) to "Share" components such as custom
web user controls across different web projects while developing.

All the modules & framework when deployed should sit in a single IIS web
application area on the server.

Has anyone done this or have any suggestions, Is it even possbile?

Regards

Toby
Nov 19 '05 #1
12 986
Cam
It's not too difficult. You just partition the web layer up as seperate web
projects, which will each output a different assembly containing part of your
site, and will contain the from end (aspx, ascx) files also.

The key thing that you have to do is Remove the application setting on
Virtual Directories created for each module of the application when you set
it up as a Web project in Visual Studio. Otherwise you will get a message
saying that you can't access controls within other modules because they are
in a differnt application.

This means however that all the assemblies of your different web modules
will need to go in a Bin folder underneath the root of your website.
Unfortunately web projects refuse to allow you to target built assemblies to
anywhere outside their project folder, therefore you'll need a script or
something which is run after a completed build to copy newly built assemblies
into the website root where the website will expect them.

HTH,
Cam

"TobyRiley" wrote:
However I would like like to stop deveoping this as a single humongous web
site (as it keeps on growing) and develop individual web application modules
that can be more easily version controlled. As you can imagine one change
means a complete upgrade of an enitire site rather than just a small module.


Nov 19 '05 #2

thankyou for further proof
that developing sophisticated
web applications in .net is a joke

if ms simply allowed for codeblocks in
methods and classes

your problem would be solved

Cam wrote:
It's not too difficult. You just partition the web layer up as seperate web
projects, which will each output a different assembly containing part of your
site, and will contain the from end (aspx, ascx) files also.

The key thing that you have to do is Remove the application setting on
Virtual Directories created for each module of the application when you set
it up as a Web project in Visual Studio. Otherwise you will get a message
saying that you can't access controls within other modules because they are
in a differnt application.

This means however that all the assemblies of your different web modules
will need to go in a Bin folder underneath the root of your website.
Unfortunately web projects refuse to allow you to target built assemblies to
anywhere outside their project folder, therefore you'll need a script or
something which is run after a completed build to copy newly built assemblies
into the website root where the website will expect them.

HTH,
Cam

"TobyRiley" wrote:
However I would like like to stop deveoping this as a single humongous web
site (as it keeps on growing) and develop individual web application modules
that can be more easily version controlled. As you can imagine one change
means a complete upgrade of an enitire site rather than just a small module.


Nov 19 '05 #3
Cam
Hey troll,

You fail to appreciate that these issues are actually down to Visual Studio,
not ASP.NET, and that they pale into insignificance compared to the problems
created by your desire to mix logic and presentation layer.

When you actually work on a software engineering project where more than one
developer works on more than half a dozen web pages then see what you think.
I can tell you from experience that your proposals here and in other threads
are naive at best.

Now back under your bridge!

Rgds,
C.

"John Rivers" wrote:
thankyou for further proof
that developing sophisticated4
web applications in .net is a joke

if ms simply allowed for codeblocks in
methods and classes

your problem would be solved


Nov 19 '05 #4
Thanks for your insight & quick reply, I will try this out. I'm now wonerding
if has been made any eaiser in VS 2005 (or could I extend the dev environment
to ease such a deveopment.)

Regards

Toby
"Cam" wrote:
It's not too difficult. You just partition the web layer up as seperate web
projects, which will each output a different assembly containing part of your
site, and will contain the from end (aspx, ascx) files also.

The key thing that you have to do is Remove the application setting on
Virtual Directories created for each module of the application when you set
it up as a Web project in Visual Studio. Otherwise you will get a message
saying that you can't access controls within other modules because they are
in a differnt application.

This means however that all the assemblies of your different web modules
will need to go in a Bin folder underneath the root of your website.
Unfortunately web projects refuse to allow you to target built assemblies to
anywhere outside their project folder, therefore you'll need a script or
something which is run after a completed build to copy newly built assemblies
into the website root where the website will expect them.

HTH,
Cam

"TobyRiley" wrote:
However I would like like to stop deveoping this as a single humongous web
site (as it keeps on growing) and develop individual web application modules
that can be more easily version controlled. As you can imagine one change
means a complete upgrade of an enitire site rather than just a small module.

Nov 19 '05 #5
Cam
I hope so, as it's not particularly intuitive at the moment. I've generally
found that as long as you split your code base in such a manner that most
updates will be constrained to single modules, then it doesn't cause too many
problems (apart from being a little difficult to set up new development
environments for new starters etc.)

"TobyRiley" wrote:
Thanks for your insight & quick reply, I will try this out. I'm now wonerding
if has been made any eaiser in VS 2005 (or could I extend the dev environment
to ease such a deveopment.)


Nov 19 '05 #6
Found this which was useful as well. Post build events used to copy assemblies.

CTO http://www.codeproject.com/aspnet/SubWebSolution1.asp

Regards

Toby

"Cam" wrote:
I hope so, as it's not particularly intuitive at the moment. I've generally
found that as long as you split your code base in such a manner that most
updates will be constrained to single modules, then it doesn't cause too many
problems (apart from being a little difficult to set up new development
environments for new starters etc.)

"TobyRiley" wrote:
Thanks for your insight & quick reply, I will try this out. I'm now wonerding
if has been made any eaiser in VS 2005 (or could I extend the dev environment
to ease such a deveopment.)

Nov 19 '05 #7


you are silly

its a simple problem
easily solved in classic asp by creating
a set of libraries and include files

some of which are under the control of designer
some of which are under the control of developer

by using normal everyday coding features such as

callbacks
classes
class interfaces

which are all available in vbscript by the way

you can quickly create multi-brandable, skinnable
web applications with very complex client and server
side implementations in an easy to manage way

plus combine this with vb6 activex dlls
and you have a great solution

the problem with classic asp was that most people
don't have the imagination and flair to use it
properly

the problem with asp.net is that it is fantastic
but for some unknown reason they don't let us use code blocks in
methods and classes for presentation

which is utterly ridiculous

now run along you before i eat you

Cam wrote:
Hey troll,

You fail to appreciate that these issues are actually down to Visual Studio,
not ASP.NET, and that they pale into insignificance compared to the problems
created by your desire to mix logic and presentation layer.

When you actually work on a software engineering project where more than one
developer works on more than half a dozen web pages then see what you think.
I can tell you from experience that your proposals here and in other threads
are naive at best.

Now back under your bridge!

Rgds,
C.

"John Rivers" wrote:
thankyou for further proof
that developing sophisticated4
web applications in .net is a joke

if ms simply allowed for codeblocks in
methods and classes

your problem would be solved


Nov 19 '05 #8
Even a fool can be thought wise if he simply keeps his mouth shut.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Paranoia is just a state of mind.

"John Rivers" <fi*****@btinternet.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...

thankyou for further proof
that developing sophisticated
web applications in .net is a joke

if ms simply allowed for codeblocks in
methods and classes

your problem would be solved

Cam wrote:
It's not too difficult. You just partition the web layer up as seperate
web
projects, which will each output a different assembly containing part of
your
site, and will contain the from end (aspx, ascx) files also.

The key thing that you have to do is Remove the application setting on
Virtual Directories created for each module of the application when you
set
it up as a Web project in Visual Studio. Otherwise you will get a
message
saying that you can't access controls within other modules because they
are
in a differnt application.

This means however that all the assemblies of your different web modules
will need to go in a Bin folder underneath the root of your website.
Unfortunately web projects refuse to allow you to target built assemblies
to
anywhere outside their project folder, therefore you'll need a script or
something which is run after a completed build to copy newly built
assemblies
into the website root where the website will expect them.

HTH,
Cam

"TobyRiley" wrote:
> However I would like like to stop deveoping this as a single humongous
> web
> site (as it keeps on growing) and develop individual web application
> modules
> that can be more easily version controlled. As you can imagine one
> change
> means a complete upgrade of an enitire site rather than just a small
> module.

Nov 19 '05 #9
For one thing, use custom Server Controls rather than User Controls, as they
can be re-used easily in any web application.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Paranoia is just a state of mind.

"TobyRiley" <To*******@discussions.microsoft.com> wrote in message
news:2B**********************************@microsof t.com...
Can anyone offer some advice on this.

I have a large web based application, 100+ aspx pages, 100's of
webUserControls etc. While all of the system is structued & layered as
n-tier
we cannot seem to spilt the web application up into discreet modules. i.e.
there is a core services framework that all areas of the application use
but
majoiry of the modules we have in the application are standalone or talk
to
other modules through variuos interfaces.

However I would like like to stop deveoping this as a single humongous web
site (as it keeps on growing) and develop individual web application
modules
that can be more easily version controlled. As you can imagine one change
means a complete upgrade of an enitire site rather than just a small
module.

It seems very difficult (impossible) to "Share" components such as custom
web user controls across different web projects while developing.

All the modules & framework when deployed should sit in a single IIS web
application area on the server.

Has anyone done this or have any suggestions, Is it even possbile?

Regards

Toby

Nov 19 '05 #10
ASP Code block again :) John Rivers you are my favourite member of this group
:)

--
Milosz Skalecki
MCP, MCAD
"John Rivers" wrote:


you are silly

its a simple problem
easily solved in classic asp by creating
a set of libraries and include files

some of which are under the control of designer
some of which are under the control of developer

by using normal everyday coding features such as

callbacks
classes
class interfaces

which are all available in vbscript by the way

you can quickly create multi-brandable, skinnable
web applications with very complex client and server
side implementations in an easy to manage way

plus combine this with vb6 activex dlls
and you have a great solution

the problem with classic asp was that most people
don't have the imagination and flair to use it
properly

the problem with asp.net is that it is fantastic
but for some unknown reason they don't let us use code blocks in
methods and classes for presentation

which is utterly ridiculous

now run along you before i eat you

Cam wrote:
Hey troll,

You fail to appreciate that these issues are actually down to Visual Studio,
not ASP.NET, and that they pale into insignificance compared to the problems
created by your desire to mix logic and presentation layer.

When you actually work on a software engineering project where more than one
developer works on more than half a dozen web pages then see what you think.
I can tell you from experience that your proposals here and in other threads
are naive at best.

Now back under your bridge!

Rgds,
C.

"John Rivers" wrote:
thankyou for further proof
that developing sophisticated4
web applications in .net is a joke

if ms simply allowed for codeblocks in
methods and classes

your problem would be solved


Jan 16 '06 #11
> ASP Code block again :) John Rivers you are my favourite member of this
group
:)
I bet you're one of those people who loves to stop and look at horrifying
traffic accidents too! ;-)

--

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.

"Milosz Skalecki" <mi*****@REMOVEITwp.pl> wrote in message
news:BA**********************************@microsof t.com... ASP Code block again :) John Rivers you are my favourite member of this
group
:)

--
Milosz Skalecki
MCP, MCAD
"John Rivers" wrote:


you are silly

its a simple problem
easily solved in classic asp by creating
a set of libraries and include files

some of which are under the control of designer
some of which are under the control of developer

by using normal everyday coding features such as

callbacks
classes
class interfaces

which are all available in vbscript by the way

you can quickly create multi-brandable, skinnable
web applications with very complex client and server
side implementations in an easy to manage way

plus combine this with vb6 activex dlls
and you have a great solution

the problem with classic asp was that most people
don't have the imagination and flair to use it
properly

the problem with asp.net is that it is fantastic
but for some unknown reason they don't let us use code blocks in
methods and classes for presentation

which is utterly ridiculous

now run along you before i eat you

Cam wrote:
> Hey troll,
>
> You fail to appreciate that these issues are actually down to Visual
> Studio,
> not ASP.NET, and that they pale into insignificance compared to the
> problems
> created by your desire to mix logic and presentation layer.
>
> When you actually work on a software engineering project where more
> than one
> developer works on more than half a dozen web pages then see what you
> think.
> I can tell you from experience that your proposals here and in other
> threads
> are naive at best.
>
> Now back under your bridge!
>
> Rgds,
> C.
>
> "John Rivers" wrote:
>
> > thankyou for further proof
> > that developing sophisticated4
> > web applications in .net is a joke
> >
> > if ms simply allowed for codeblocks in
> > methods and classes
> >
> > your problem would be solved


Jan 16 '06 #12
"Kevin Spencer" wrote:
ASP Code block again :) John Rivers you are my favourite member of this
group
:)


I bet you're one of those people who loves to stop and look at horrifying
traffic accidents too! ;-)


No way :]
You can always get his posts seriously but it's just a waste of time. I
wonder if he finds a good job in 5-10 years time with his ASP/Code blocks...

Jan 16 '06 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Bob | last post by:
Hallo, I have to make a web application in Javascript/ASP for tenniscourt reservation (based on Access database). I would like to do everything with one page, because the user must be able to...
4
by: Marquisha | last post by:
If this is off-topic, please forgive me. But I thought this might be the perfect spot to get some advice about how to proceed with a project. Working on a Web site design for a nonprofit...
2
by: Alex Shefer | last post by:
I have ASP.NET web application running on Microsoft Server 2003. It works fine for many clients but one of my clients gets a "File Download" dialog "Some files can harm your computer" trying to see...
12
by: yuyazhang | last post by:
Hi , I am a graduate , I have had some basic knowlege about C++ ! but I find that I can't master it , I am disappoint for that . who give me some advice about ways which master it and some...
12
by: johannblake | last post by:
First off, I am NOT a beginner. I have lots of experience developing professional web sites and am a professional software developer. Unfortunately I've been out of web site development for the...
15
by: vishsid3 | last post by:
Hi guys , I am new to this forum . can anybody plz tell me - "how can I run a c executable in some directory ,while the executable is in some other directory " I am new to unix and c ,so any...
39
by: Digital Puer | last post by:
I'm not the world's greatest C++ programmer, so I had a hard time with these. Some help would be appreciated. 1. Comment on the declaration of function Bar() below: class Foo { static int...
1
by: =?Utf-8?B?RW1tYSBIb3Bl?= | last post by:
Hi All, I need some advice please. I have very good knowledge of MS Access, Excel etc, reasonable knowledge of VBA and some very basic knowledge of VB6 and virtually non-existant knowledge of...
2
by: jon121970 | last post by:
I'm new here.. I am hoping to get some Professional Advice. I want to start my own online Auction. I anticipate it will grow into a high volume/high traffic online auction. I need some...
9
by: azrael | last post by:
I am starting to work on a application and need some advice. I am planing to develop a desktop application which would have some usage, but also it should be able to comunicate to a web server...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.