I have an ASP application which has the following arechitecture.
UI layer (all ASP pages will resides here)
Classes [All bus logic will reside here with various class files)
Single entry point for all bus logic ASP files (like direct.asp which will direct the control to appropriate ASP bus logic files to carryout required actions baed on the certain parameters that are coming from UI pages)
the output also will go back in the same way back to the font end UI pages.
Is it something can be developed using Factory Pattern in ASP.NET if we need re-write this ASP app? I just wanted to see if my co-relation pattenrs from ASP architecture is correct or not.
Hi Nilson, we are new to MVC but wanted to see if we can implement via Factory Pattern or not. we will be new bies in MVC and may be hard as well to implement.
We wanted to put 3 tier and then follow thist Factory Pattern to direct the UI calls between Buss logic classes.
Member
671 Points
462 Posts
Which Pattern it is?
May 20, 2013 05:25 AM|ramana123|LINK
Hi Guys,
I have an ASP application which has the following arechitecture.
UI layer (all ASP pages will resides here)
Classes [All bus logic will reside here with various class files)
Single entry point for all bus logic ASP files (like direct.asp which will direct the control to appropriate ASP bus logic files to carryout required actions baed on the certain parameters that are coming from UI pages)
the output also will go back in the same way back to the font end UI pages.
Is it something can be developed using Factory Pattern in ASP.NET if we need re-write this ASP app? I just wanted to see if my co-relation pattenrs from ASP architecture is correct or not.
any thoughts?
/Ram/
Star
11166 Points
3959 Posts
Re: Which Pattern it is?
May 20, 2013 05:46 AM|nilsan|LINK
Well, you can have no of layers in your project. Generally people tend to use 3 layered architecture for webforms.
I've been using MVP pattern for no of projects. You can use MVC as well with Asp.net MVC framework.
WebForms:
http://imar.spaanjaars.com/416/building-layered-web-applications-with-microsoft-aspnet-20-part-1
http://imar.spaanjaars.com/476/n-layered-web-applications-with-aspnet-35-part-1-general-introduction
MVC:
http://www.asp.net/mvc
http://www.mikesdotnetting.com/Article/132/ASP.NET-MVC-is-not-all-about-Linq-to-SQL
MVC uses front controller pattern that processes Web application requests through a single controller.
What to choose?
http://msdn.microsoft.com/en-us/library/dd381412(v=vs.108).aspx
I hope it helps!
Blog | Get your forum question answered | Microsoft Community Contributor 2011
Member
671 Points
462 Posts
Re: Which Pattern it is?
May 20, 2013 12:40 PM|ramana123|LINK
Hi Nilson, we are new to MVC but wanted to see if we can implement via Factory Pattern or not. we will be new bies in MVC and may be hard as well to implement.
We wanted to put 3 tier and then follow thist Factory Pattern to direct the UI calls between Buss logic classes.
/Ram/
Star
11166 Points
3959 Posts
Re: Which Pattern it is?
May 21, 2013 02:19 AM|nilsan|LINK
Well, Asp.net MVC follows convention over configuration. Once you understand it, it will be piece of cake to implement it.
If at all you're willing to spend some time to learn it, go for it.
http://www.asp.net/mvc
http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/intro-to-aspnet-mvc-4
You can check out sample Music Store app and download the code and play with it.
http://www.asp.net/mvc/tutorials/mvc-music-store/mvc-music-store-part-1
If at all you've made up your mind to go for webforms then check out below link that explain factory method and code in C#.
http://www.dofactory.com/Patterns/PatternAbstract.aspx
I hope it helps!
Blog | Get your forum question answered | Microsoft Community Contributor 2011