PDA

View Full Version : Difference between spring.net & asp.net 2.0


sushiln7
06-30-2006, 07:58 AM
Hi,

I have gone through the spring.net framework & its really great.

But i would like to know if i should use asp.net 2.0 or spring.net .

What are the advantages i would get in addition to using the asp.net 2.0 framework.

Dimon
06-30-2006, 06:40 PM
Well, asp.net 2.0 allows you to create web applications and web services.

Spring.NET provides you enterprise framework for your .Net solution.

And in your case you would use Spring.Web extension to get bedirection control mapping or MVC that allows you to separate controller and view (in traditional asp.net the view (i mean codebehind) and controller is in the same palce) .

Actually, there are many useful facilities in Spring.NET but I will not describe all of them now

sushiln7
07-02-2006, 07:49 AM
Hi,

Thks for replying to my query.

My main query was what additional features i would get by using spring.net framework in addition to using dotnet framework 2.0

Most features in spring.net like master pages, bidirectional binding are present in framework 2.0

Regards,
Sushil

Dimon
07-03-2006, 10:43 PM
Hi again!

well, I can say i'm novice at spring.net yet, but has some expierence with it.... the 1st what i use from spring.net is a factory i mean i like to describe my application context in xml file then i create/get my business objects from this context. This method allows me to use IoC pattern. You can see MovieFinder in Spring.net examples. Also, i can change and move many of configurations into this xml file and then I don't need to use AppConfig collection or use some other config manipulations.

Next, spring.net has some integrations, i like nhibernate integration...

Ok, one more example - object navigator, sometime it is useful to use this navigator when i try to get some value from object by reflection, early i wrote my own code to find value recurcive (i mean i have got object A includes property type of B, and last one has property C and with object navigator i get value by property path like "A.B.C")

Yep, I know i provide you little bits of examples which i'm using and i skip again many of big and greate subprojects of spring AOP, Services, Data, Threading.. I think authors of spring will describe better...

PiRX
07-10-2006, 09:24 AM
Bidirectional binding in .net (without spring) works only with couple of controls.

Aleks Seovic
07-31-2006, 01:39 PM
Please take a look at this thread for a more comprehensive explanation of advantages of Spring.NET over vanilla ASP.NET.

Also, keep in mind that Spring.NET does not replace ASP.NET, but simply extends it in some very useful ways, so better question might be why not to use it?

Regards,

Aleks