tags:

views:

60

answers:

2

Hi

I'm across winforms currently but want to write an app that users will have a LAN/WAN between them and database.

So assuming I need to use WCF if I stick with winforms as the UI, or go ASP.net and go web, THEN which of these two approaches would be the easier rampup approach for me?

Note wanted to use Entity Framework.

+1  A: 

Winforms binds the access to only Windows machines.

ASP.Net gives you access to across-OS, including devices like mobile phones with browsers etc.

Also, ASP.Net already has good enough security built-in. For WCF, you'll need to create your own layer... I mean, even though encryption/reliability etc exists, but you still need to effectively implement them.

MasterGaurav
so it sounds like much more work for the novice to deliver a WinForms based application out to clients here (with WCF) then it would be to swap to a Web based delivery method using ASP.net WebForms then MasterGaurav?
Greg
+2  A: 

You're comparing apples to oranges here. ASP.NET is a full-fledged web application framework (or more precisely: two of them - WebForms and MVC). WCF is a set of services and supporting architecture - those are two totally different sets of functionalities and capabilities.

ASP.NET and web development present their own sets of challenges - along with the promise of some benefits, too, of course. Webforms is attempting to be pretty close to Winforms - with components you drag on a form, events you hook up etc. ASP.NET MVC uses the Model-View-Controller approach and tries to be closer to the HTML metal, and give you more control over your HTML/CSS markup.

If you use WCF and/or WCF Data Services, and you encapsulate all the business logic, data validation and data access into separate assemblies, you can always branch out and add a ASP.NET web UI to your solution later on.

Learning how to use WCF and WCF Data Services definitely does not lock you into a position where you can't go and use ASP.NET (as ASP.NET Webforms or as ASP.NET MVC) as the frontend UI for that solution.

marc_s
thanks Marc - so going to a Web UI based approach (as opposed to distributing WinForms, with WCF) seems then an easier rampup approach? Is this what you're kind of implying? (i.e. for novice)
Greg
@Greg: no, that's not what I was implying :-) What I was trying to get across is that it's not "Winforms/WCF vs. ASP.NET" - you can totally use WCF with ASP.NET, too, and it makes a lot of sense, too. Using WCF is independent of which UI layer you use in the end.
marc_s