473,888 Members | 2,208 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2481
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**********@gm ail.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
2376
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 http://www.tonymarston.co.uk/php-mysql/model-view-controller.html and tell me why my implementation of the MVC design pattern is totally wrong. Go on, I dare you. Make my day. -- Tony (a legend in his own lunchtime) Marston
3
4423
by: Prasad Patil | last post by:
Hi I am trying to understand the article http://msdn.microsoft.com/practices/type/Patterns/Enterprise/DesFrontController/ http://msdn.microsoft.com/practices/type/Patterns/Enterprise/ImpFrontControllerInASP/ [/url which describes Enterprise Solution Patterns Implementing Front Controller in ASP.NET Using HTTPHandler. When i created the web application and tried to run the same It gives me Parser Error Message: Unrecognized configuration...
2
1388
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 controller.mapping section in the web.config file, as it is used in UrlMap.cs and that is used by RedirectingCommand.cs in the samples given in the article above.
2
1921
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 e/desfrontcontroller/ Alternative source: Downloadable pdf for "Enterprise Solution Patterns Using Microsoft .NET" at http://msdn.microsoft.com/practices/type/Patterns/Enterpris
2
3223
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 occurs. I get invalid IsPostBack results which I believe can fixed using the patch in KB:821156. How do I get this patch? Another question in the same pattern is when using LoadConrol to load a .ascx file I get "maps to another application,...
1
2204
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: (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpatterns/html/ImpFrontControllerInASP.asp) The irony of microsoft asp.net sample is it does not work...and the WORKAROUND as they say it is provide in article...
2
1948
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 not use postback in ASP.Net control. If I post back from a ASP.Net control it takes me to the correct page and the URL is displaeyd as it is.
5
1438
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 model Does anyone have any ideas?
1
3042
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 framework, but the javascript calls to php ignore my front controller code when instantiating classes. Can someone please provide me with some hints on how I can make this work? Thank you.
0
11173
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10878
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10434
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9593
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7988
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7143
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4635
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4239
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3245
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.