473,386 Members | 2,042 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,386 software developers and data experts.

Front Controller Pattern.

Is anyone aware of a good Front Controller Pattern implementation in
ASP.Net, we are developing a new product, and contemplating whether we
should use Front Controller Pattern implementation, due to the
flexiblity it provides for navigation and loading views etc....

any pointers/comments would be appreciated.

regards
-ashish
Dec 6 '05 #1
3 2336
Inherently ASP.NET uses a Page Controller pattern.

If you plan to use the Front Controller pattern you will be fighting
against the framework, there are various ways to implement the Front
Controller, here is one: -

http://msdn.microsoft.com/library/de...ollerInASP.asp

If you do implement the Front Controller then forget about post back
events and viewstate, its commands and handlers.

Sorry to be so negative but any decision to implement the Front
Controller should not be taken lightly.

I have implemented sites using the Front Controller pattern using
struts and it works very well, but there are certain types of sites
that the implementation best fits the FC pattern

Dec 6 '05 #2
thanks for the Reply,

the problem with us the ever changing navigation graphs of the
application, and that causes us to recompile the whole application,

we want to build something where the navigation, the business logic and
layout of pages is seperated cleanly, and that would help us in better
automated unit testing too,

do you think that there is a considerable difference in development time
between FrontController and PageController ?


ga**********@gmail.com wrote:
Inherently ASP.NET uses a Page Controller pattern.

If you plan to use the Front Controller pattern you will be fighting
against the framework, there are various ways to implement the Front
Controller, here is one: -

http://msdn.microsoft.com/library/de...ollerInASP.asp

If you do implement the Front Controller then forget about post back
events and viewstate, its commands and handlers.

Sorry to be so negative but any decision to implement the Front
Controller should not be taken lightly.

I have implemented sites using the Front Controller pattern using
struts and it works very well, but there are certain types of sites
that the implementation best fits the FC pattern

Dec 6 '05 #3
If your major problem is changing navigation paths then Front
Controller can help, it abstracts the physical page from the logic.

Are you using event handlers and the post back model? of so its not
easy to continue to do so with the front controller,

Imagine developing without control state and events,

I'd take a look at struts if I were you

Dec 6 '05 #4

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

Similar topics

2
by: Tony Marston | last post by:
For those who you thought my method of implementing OO principles in PHP was totally wrong - see http://www.tonymarston.co.uk/php-mysql/good-bad-oop.html for details, you can now read...
3
by: Prasad Patil | last post by:
Hi I am trying to understand the article http://msdn.microsoft.com/practices/type/Patterns/Enterprise/DesFrontController/...
2
by: Colin Basterfield | last post by:
Hi, has anyone (tried to) implement the Front Controller pattern as described at http://msdn.microsoft.com/architecture/patterns/ImpFrontControllerInASP/ I'm having trouble resolving the...
2
by: Magdelin | last post by:
I am trying to implement the front controller web presentation design pattern proposed by MS at the following link: http://msdn.microsoft.com/practices/type/patterns/enterpris...
2
by: Mr Wizard | last post by:
I am going through the front controller http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpFrontControllerInASP.asp and all works well except when the server.transfer...
1
by: NGM | last post by:
Hello All When implementing FrontController sample MSDN I am facing a lot of problems try implementing the front controller patterm sample provided by microsoft:...
2
by: Alok Jain | last post by:
Hi, We are using Front Controller implementation in our DotNet application. I am trying to hide URL in my application. This is based on Front Controller model. I am able to achieve if I do...
5
by: garethdjames | last post by:
A while ago I read news about ASP.Net 2.0 having support for the Front Controller model, In all the reports I have read and in the latest beta download I can see no implicit support for this...
1
by: Aquaren | last post by:
I have a framework that uses the front controller design pattern for a single point of entry to the application and the autoload function for includes. I am trying to incorporate AJAX into the...
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: 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
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: 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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.