I want to build a website that looks good (as a website) on phones and tablets. but also has a Windows 8 "Modern" style app that has some of the functionality of the main site.
I though MVC and Entity Framework would be the way to go but now I read that Windows App development does not support remote database connectivity and that I can get around it using Web Services.
So will it be just easier to create a non-MVC Asp.net website with Web service, and a normal ADO.net data layer (as I'm finding the EF model view a pain in the a**) from the outset?
I should add I'm a newbie so may have got my understanding of certain concepts wrong!
Really, its up to you. All the options you listed will work. The big thing to take into account for Mobile browsers is 1) javascript support, 2) flash support and 3) layout/CSS.
#3 will be what makes things look good, which sounds pretty important to you.
Have you read the book? - ASP.Net 3.5 CMS Development (now on Kindle)
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
shield your business and data access logic in separate layers (you should always do this btw). The create an MVC 4 application and make use of responsive design to make it look good in different browsers.
In the MVC application you can also put in Web API controllers as endpoints for you W8 dedicated application and call these. Web API makes it very simply for you to switch between xml, json, whatever you put in it so that can be a winwin situation.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
Thanks - ok so just to be clear as to what one may consider to be current best practice for this situation (assuming I'm open to learn anything and don't have a preference)
Develop my front end in HTML5 & Javascript with Web API for client-server interaction
and have MVC for server/database interaction -- (so really making use of the M and C component here)
Have I got that right? As I said I'm rather a newbie (or rather old timer re-returning to programming after 8 years away) so I may have misunderstood concepts.
for the web site I would opt for MVC 4 with CSS3. For the Windows 8 App you can make use of HTML 5, perhaps even make use of generated MVC to HTML code, and interact via Web API with your server.
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
PuzzledGeek
Member
1 Points
33 Posts
Getting confused as to what technologies I should use
Dec 18, 2012 02:09 PM|LINK
I want to build a website that looks good (as a website) on phones and tablets. but also has a Windows 8 "Modern" style app that has some of the functionality of the main site.
I though MVC and Entity Framework would be the way to go but now I read that Windows App development does not support remote database connectivity and that I can get around it using Web Services.
So will it be just easier to create a non-MVC Asp.net website with Web service, and a normal ADO.net data layer (as I'm finding the EF model view a pain in the a**) from the outset?
I should add I'm a newbie so may have got my understanding of certain concepts wrong!
Curt_C
All-Star
66017 Points
7639 Posts
Moderator
Re: Getting confused as to what technologies I should use
Dec 18, 2012 02:42 PM|LINK
Really, its up to you. All the options you listed will work. The big thing to take into account for Mobile browsers is 1) javascript support, 2) flash support and 3) layout/CSS.
#3 will be what makes things look good, which sounds pretty important to you.
v5.1 of iTracker (Inventory Tracker Starter Kit) is out, Download it now!
XIII
All-Star
182702 Points
23463 Posts
ASPInsiders
Moderator
MVP
Re: Getting confused as to what technologies I should use
Dec 18, 2012 02:46 PM|LINK
Hi,
shield your business and data access logic in separate layers (you should always do this btw). The create an MVC 4 application and make use of responsive design to make it look good in different browsers.
In the MVC application you can also put in Web API controllers as endpoints for you W8 dedicated application and call these. Web API makes it very simply for you to switch between xml, json, whatever you put in it so that can be a winwin situation.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
PuzzledGeek
Member
1 Points
33 Posts
Re: Getting confused as to what technologies I should use
Dec 18, 2012 03:31 PM|LINK
Thanks - ok so just to be clear as to what one may consider to be current best practice for this situation (assuming I'm open to learn anything and don't have a preference)
Develop my front end in HTML5 & Javascript with Web API for client-server interaction
and have MVC for server/database interaction -- (so really making use of the M and C component here)
Have I got that right? As I said I'm rather a newbie (or rather old timer re-returning to programming after 8 years away) so I may have misunderstood concepts.
XIII
All-Star
182702 Points
23463 Posts
ASPInsiders
Moderator
MVP
Re: Getting confused as to what technologies I should use
Dec 18, 2012 06:58 PM|LINK
Hi,
for the web site I would opt for MVC 4 with CSS3. For the Windows 8 App you can make use of HTML 5, perhaps even make use of generated MVC to HTML code, and interact via Web API with your server.
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!