Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8288643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:19:12+00:00 2026-06-08T12:19:12+00:00

I am working on a MVC site which are having two separate views for

  • 0

I am working on a MVC site which are having two separate views for mobile and web. The background work is same. So I want to have same controller for both view.

Following is folder structure for that.

View -> Folder for view.

    Customer -> This folder is for web

                 Index.cshtml  -> Customer listing view for web

    MobileCustomer-> This folder is for mobile 

                 Index. cshtml -> Customer listing view for mobile.

Now the back ground things are same for both on the UI for both mobile and web are diffrerent. So I want to use same customer controller for that. So in Controller folder of asp.net mvc project. I have customer controller and I want to use that same.

But I want URL for each mobile are different.

localhost/customer/ -> This will load normal view for customer

localhost/mobile/customer -> This will load mobile view for customer

How I can achieve this with asp.net mvc 3 or 4 application?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:19:13+00:00Added an answer on June 8, 2026 at 12:19 pm

    ScottHa blogged about a custom view engine that you could use to separate your mobile views from your desktop client views and based on the user agent serve the one or the other. The NuGet is spec-compatible with the built-in functionality in ASP.NET MVC 4 so the migration will be easier for you. So if you are using ASP.NET MVC 3 go ahead, download the MobileViewEngines NuGet and start playing with it. And if you are using ASp.NET MVC4, well, that’s already built-in for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an ASP.NET MVC site which will have a database. While I'm
I have an MVC2 web site which I am trying to get working offline
I am working on a ASP.NET MVC web site which has a form that
I'm working on a Web project using Asp.Net MVC, which I'll have to deploy
I'm working on a site (MVC) at the moment, which uses ajax quite heavily
I have a working copy of asp.net mvc site locally. I just uploaded the
We're working on a .NET MVC mobile site. I understand that on the iPhone,
I am working in Asp.net MVC and have a peculiar requirement for which I
I have an iPad app that submits orders to an ASP.NET MVC web site
I am working on a ASP.NET MVC web site that has multiple submit buttons.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.