Mobile MVC - Native Mobile Application Views - asp.net-mvc

Planning to create a new website for our product using ASP.NET MVC 4. Site should support Desktop, Tablet and Few mobile platforms (WP7, IOS, Android).
Do we need to create View for each platforms like below? Or what is best preferred approach to have multiple platform and screen support
Desktop - > Views/Shared/Logon.cshtml
Tablet - > Views/Shared/LogonTablet.cshtml
Mobile - > Views/Shared/LogonMobile.cshtml
Thanks,
Velus

Checkout ASP.NET MVC 4 display modes. They allow you to render a specific view based on the User Agent. And if you need to use ASP.NET MVC 3 there's a NuGet for you which is spec-compatible with the upcoming release of ASP.NET MVC 4.

Related

Should I use Telerik Kendo UI Upload or Telerik MVC extensions Upload

I have an ASP.NET MVC web application. In one of views users will select multiple files and attach and upload. I have license for both. I used the Kendo Upload to try it out and it works fine. Then I realized that Kendo UI is geared towards mobile application. In my local environment this upload is working fine but should I use the MVC extensions upload since its specifically for web applications? My intranet application is not used via mobile devices.
KendoUI has a mobile component, but their regular web stuff is for everything. It can completely be used for regular web applications - nothing prohibits you from that.
The Telerik MVC extensions are not longer developed or supported. KendoUI is their replacement.

How to open MVC 4 view page from webform.aspx page?

basically i am looking for something like this ,
i got webform.aspx page and have button there, if i click on it i need to show MVC view page
idea is i want app with webform and mvc !
what i am trying is :
http://www.packtpub.com/article/mixing-asp.net-webforms-and-asp.net-mvc
but here i am confused about webconfig settings
please help me to get it done,
thanks
Scott Hanselman has a good guide on integrating MVC with a Web Form App, it should take you through the steps, here it is in a nutshell:
Run the Upgrade Wizard (open the Visual Studio2008 Web Application
in Visual Studio 2010)
Create a default ASP.NET MVC application for reference (you'll throw it away later)
Use a differencing tool like Beyond Compare to integrate the new web.config entries from the ASP.NET MVC sections into the upgraded ASP.NET WebForms application

SinglePageApplication - match sample videos from 2012 Fall update

I am trying to recreate the ASP.NET Single Page application as demonstrated by Steven Sanderson
Single Page Applications - for desktop, mobile, tablet with ASP.NET MVC4
I have downloaded and installed the Build Preview - http://www.asp.net/vnext
I have using NuGet, tried to update my SPA Scaffolding to ASP.NET SPA MVC 4 (Beta)
I am running Visual Studio 2012
When i create a new MVC4 application, there are some distinctive differences between what i have and the demo's i see.
Primarily, after create a new project, if you view what you have the sites look completely difference
What Steve Sanderson Gets
What I Get
Then continuing to follow his example, he created a controller and has an option of
Single Page Application with read/write actions and views, using Entity Framework
This is not avaiable in my Create Controller Dialog
What Steve Sanderson Gets
What I Get
Why are my options differen't?
What have I not installed?
Thanks for any help
The new SPA template is a completely different template, as you have discovered. Short story ... the new template is revised to be a starting place, the old template was deemed too prescriptive.
The new template is a preview and will have more changes by the time it is released. The idea is you can use it as a starting point for a SPA and then add features and other libraries as needed.
UPDATE: If you want more info on what's in the latest template you can read my post here: http://www.johnpapa.net/insidespatemplate

Using distinct views for distinct devices ASP.NET MVC

I need to use distinct version of views, for each device.
For example:
Controller/Action: Home/Index
PC - Home.cshtml, Android - Home.Android.cshtml, iPad - Home.iPad.cshtml
These pages contains different markup, but each device. But how it can be activated and detected using ASP.NET MVC IOC?
What are you looking for is Mobile capable view engine, look here :
http://www.hanselman.com/blog/NuGetPackageOfTheWeek10NewMobileViewEnginesForASPNETMVC3SpeccompatibleWithASPNETMVC4.aspx

.NET MVC + Dojo (Other Framework) for mini-ERP

We are about to develop a mini-ERP web-app. We need the app to be browser agnostic with rich user interface which should be 'enterprise-ready'!. Something like the latest openERP.
We are planning on using the .NET MVC 3 and Dojo for our project.
So our major queries are:
Are there any Htmlhelpers for Dojo. Any opensource implementation where we can get some idea.
Will the app be slow if we use Dojo? In our previous project we integrated Dojo with PHP and had to make the web-app SPA (single page application). This is because on each request, the declarative markup was processed by dojo. So larger the no. of widgets, longer the processing. We had not tried the Dojo build feature then. Will that make it fast? Or do we have to go with the Single Page Application? What are the pro/cons of SPA?
Note: We are open to using any other competitive JS Framework. Bonus point if we get some ready implementation with .NET MVC (for reference).
I have developed ERP application using ASP.NET MVC 2. It is not so advanced but it gets the job done.
Here are some points concerning its implementation:
It is not SPA
For the UI I have used jQueryUI and jqGrid, which perform very well
AJAX form submission using jQuery Form Plugin
We are using ASP.NET MVC4 in our ERP project. These features are related with the architecture .
JQuery Layout
SlickGrid (a open source grid control with very rich functions and plugins)
ZTree
JQuery Dialog
WebApi (not WCF)
Dapper (not EntityFramework)
We combine many plugins working together, and one team member is familiar with CSS and DIV layout. There are some challenges if you haven't rich experience with javascript and UI layout. Finally, we have completed the project, it is amazing.

Resources