MVC vs Component Design

For MVC design, controller respresent for communicating the model and view. Model contains the business logic and data connection.

For Component design, there will be a presentation componet, business component and data component. The business logic and data component will be separated.

So, which design methodology should I follow ? For MVC, can it only use vbhtml (Razor engine) - as I only see example on using .vbhtml ? Can it also apply to asp.net & asp.net.vb ?


Great thanks
AXISHKAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Roopesh ReddyIT AnalystCommented:
Hi,

You can use VB Razor(.vbhtml) or c# Razor(.cshtml)!

No, Razor is a View engine and is applicable only to Views For ASP.NET VB you can use the general VB language!

Hope it helps u...
0
AXISHKAuthor Commented:
Tks.

When should I apply MVC  and components in my design ? Will there be any contradiction for these two approach as in MVC, Data and presentation will be merged together...
0
Roopesh ReddyIT AnalystCommented:
Hi,

If you are developing ASP.NET Web application, then MVC should be fine!

If you are designing a control/gadget then you should think of Component!

Hope it helps u...
0
AXISHKAuthor Commented:
Can I say VB Razor(.vbhtml) will be a trend for designing ASP.NET Web application rather using .aspx & .aspx.vb (code behind page) ?

Tks
0
Roopesh ReddyIT AnalystCommented:
Hi,

Yeah! ASP.NET MVC gives more control  to the HTML rendering and it's loosely coupled!

http://www.codeproject.com/Articles/528117/WebForms-vs-MVC

Hope it helps u...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.