This project is read-only.

Design question: what is the difference between a module and a controller?

Topics: blog, faq
Oct 6, 2009 at 8:36 PM

Hello,

My question is:  What is the difference between a module and a controller?

So far, I have two types of requests:  1) get data from a web service, or 2) go to many web services and get the data from each.  Both 1) and 2) will format the data into xml or html and return it in the response.   Would these activities be accomplished by modules or controllers?  Would the later case (get data from many web services) execute a module for each web service?

Thanks in advance.

csharpnewbie

Nov 1, 2009 at 10:41 AM

A module is more powerful and can do anything you like.

A controller is much easier to use, but can only handle URI's looking like this: http://youserver/yourcontroller/yourmethod/yourid