Questions tagged [asp.net-mvc-3-areas]

ASP.NET MVC and its related flavors since 2007 by Microsoft. It has come up MVC4 and it's still evolving. It allows to build applications based on Model View and Controller. It can integrate with View Engines such as Razor, Spark, etc.

  • JQuery Integeration, Fluiq Integeration
  • MVC Challenges in integration
  • View Engines
  • MVC related Patterns
163 questions
0
votes
1 answer

MVC3 not finding a View in an Area

I have one area in my project (for admin). I want to be able to use a view called Index.cshtml in the Admin area but my app always displays the Index.cshtml view for the main project (which isn't in a seperate area). If I change the name of the view…
K. Bob
  • 2,668
  • 1
  • 18
  • 16
0
votes
1 answer

MVC 3 Rendering a section in a area

I am trying to render a section that is defined in _layout file from my custom area. In my area I have the _ViewStart which points to the _layout in the root site. The section that I am trying to use is in the head tag, but in my area it is put in…
Cliffboss
  • 190
  • 2
  • 9
0
votes
1 answer

different applications split by areas?

I already have programmed some small applications, the database design was simple, just one normalized database containing all the datas I need for the application. Now I want to try to programm something bigger: There should be 4 websites build…
0
votes
1 answer

handling big applications and big databases

I already have programmed some small applications, the database design was simple, just one normalized database containing all the datas I need for the application. Now I want to try to programm something bigger: There should be 4 websites build…
0
votes
1 answer

MVC3 RouteHandler result ignores Area in the resolved Route - why?

I am working on splitting an MVC3 Application into two Areas. The existing application is going into one area (V1) and we are beginning a redesign in the second area (V2). I have the Views, Models, Controllers, etc all moved into the…
0
votes
1 answer

How to specify route to shared views in MVC3 when using Areas

I have an MVC3/Razor app using Areas such that my views are in the following location: /Areas/Areaname/Views/ControllerName/view.cshtml Right now, for any shared partials, I have to put them here: /Views/Shared/_sharedview.cshtml I would prefer to…
sydneyos
  • 4,527
  • 6
  • 36
  • 53
0
votes
1 answer

Handling objects and routes with MVC3/Razor?

I have a geo collection that contains items like: [state name] [city], [state] [country] A text box is available for a user to begin typing, and a jQuery autocomplete box fills displays possible options. The URL structure of the post request will…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
0
votes
1 answer

MVC3 Razor routing from Area to Root

I have searched the site and cant find anything similar to my question. I am new to MVC so I may be asking a dumb question. When the site is launched there are default Home and About buttons at the top. I added a new button that points to an Area,…
Squeal
  • 105
  • 1
  • 3
  • 15
0
votes
2 answers

how to set up routing for paging in asp.net mvc3 app

i have set up simple paging system in my app that is using the idea from nerddinner tutorial, using the paginated list class: public class PaginatedList : List { public int PageIndex {} public int PageSize {} …
0
votes
1 answer

mvc3 architecture

i want to develop a simple CMS. i want to add the ability to add modules to the CMS. what need to be the architecture for such a CMS? a solution and then a mvc project for the site and another for the admin? or one project with area for the…
eyalb
  • 2,994
  • 9
  • 43
  • 64
0
votes
2 answers

problem in converting date in fromat : dd.MM.yyyy to MM/dd/yyyy in mvc

Following is the example Model public class MyViewModel { [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd.MM.yyyy}")] public DateTime Validity { get; set; } } Controller public class HomeController : Controller { …
Sanjeev
  • 271
  • 1
  • 5
  • 7
0
votes
1 answer

Can't access the scripts which are placed within Areas. ASP MVC 3

I am trying to access the scripts which are placed within the folder scripts created within Areas. But whenever i am trying to run the View, i am getting an error 404 saying the file was not found.
Ashish Babu
  • 1,167
  • 9
  • 20
0
votes
0 answers

Redirect to Area controller action method from main Controller actionmethod

I am using ASP.NET MVC with Areas and want to follow these procedure: On load the application my first page will come login that is from main controller action result (Controller from main solutions explorer not Areas) Suppose I have…
3 rules
  • 1,359
  • 3
  • 26
  • 54
0
votes
1 answer

MVC 3 Area Registration 302 Error

I have a 2 area which names called with "Admin" and "Services". My project structure as below image 1 I want to redirect all root url to Admin area. I changed my area registration files to resolve this problem as below code block. //Root //Old…
0
votes
1 answer

Cookie not expiring in mvc3

I am trying to set cookie which expires in 10 sec in ASP.NET MVC3 Project. But its not exipring in 10 sec. Following is my code to set cookie: HttpCookie loginCookie = new HttpCookie(cookieName,…