Questions tagged [areas]

77 questions
3
votes
1 answer

How do I use ninject within an AreaRegistration

I have an 'Account' area within my mvc3 project. It has an AreaRegistration class to limit visibility to registered-only users like so: public class AccountAreaRegistration : AreaRegistration { public override string AreaName { get …
Dan Johnson
  • 105
  • 8
2
votes
1 answer

Routing to an Area home page in ASP.NET MVC

I'm trying to route to the home page of an Area in MVC, e.g. myDomain.com/myArea/Home/Index when I use the URL: myDomain.com/myArea MVC appears to by trying to find a Controller called "myArea" in the root Controllers folder and thereby would…
Oundless
  • 5,425
  • 4
  • 31
  • 33
2
votes
2 answers

OpenCV drawContours strange behavior

I have a list of contours to draw. Some of these contours intersect themselves. When I want to draw them with OpenCV, I simply use the cv::drawContours function. However, the behavior is quite strange. Here is a quote of the official…
Simon Ninon
  • 2,371
  • 26
  • 43
2
votes
0 answers

Figure inside a box

This is just a theoretical question. I think it's very probably that someone is already faced this problem before, and should be plenty of known algorithms to solve it. More than a concrete answer to my problem, I would be grateful if someone could…
Rumpelstinsk
  • 3,107
  • 3
  • 30
  • 57
2
votes
1 answer

imagemapster different areas with different colors

I was wondering if the following is possible with imagemapster: i need area 1 and area 2. When i hover one of them both have to highlight but in different colors, for example area 1 is blue and green when i hover one of them and area 2 is yellow and…
rrger
  • 29
  • 1
  • 6
2
votes
1 answer

Areas in asp.net mvc, only one work at time

My folder look like this: (root)/Areas/Admin/Views/.. (root)/Areas/Admin/Controllers/... (root)/Areas/Admin/Routes.cs (root)/Areas/Forum/Views/.. (root)/Areas/Forum/Controllers/... (root)/Areas/Forum/Routes.cs public class Routes :…
user105496
2
votes
1 answer

autofac mvc areas in separate projects

I've separated my MVC4 app into areas BUT using separate projects In each module project (area) I have a module to register the controllers protected override void Load(ContainerBuilder builder) { var assembly =…
2
votes
0 answers

ASP.NET MVC 4 Areas within Areas won't render the Shared _Layout.vbhtml from Master project

Ok so I have this interesting ASP.NET MVC 4 solution/project structure, which creates pluggable application modules. I created it following this…
CokoBWare
  • 456
  • 3
  • 13
2
votes
0 answers

Finding Co-varying Regions in a 3D Matrix

I wonder if anyone has a suggestion on how to solve the following problem. I have a matrix of size n*p*t. I would like to find areas in the plane n*p, that co-vary (in the t dimension). In other words, sub-regions on the plane (n*p) whose values…
2
votes
1 answer

asp.net mvc3 - external includes or sharing layouts across projects?

Ok, I'm still new to Asp.Net and MVC3. I'm becoming more familiar with things but still experimenting after finishing my first web application (a simple web form submission into a database). Now I am working on smaller projects such as converting…
1
vote
1 answer

ASP.NET MVC3 List all areas

I have an ASP.NET MVC3 application in which I am creating multiple areas, is there a way I can find out programmatically the number of areas that are present and their names. What I want to do it create some partial pages in the different areas and…
Arthi Viji
  • 13
  • 2
1
vote
0 answers

Link from email to navigate to given section in an angular app (MVC areas)

I have an ASP .NET MVC areas / AngularJS app. I have the need to generate a link that will be sent out in an email. I would like users that read the email to be able to click the link and then be taken to the relevant section in the AngularJS…
flytvr
  • 13
  • 3
1
vote
1 answer

Why is MVC Area Routing not working as expected?

I have the following area set up on my site. public class AdminAreaRegistration : AreaRegistration { public override string AreaName { get { return "Admin"; } } public override void…
1
vote
1 answer

Returning to Calling Page Within an Area Using UrlReferrer

I have created a new MVC2 project using the ASP.NET MVC2 Web Application, which gives me the default web site. I have added a simple area in which I had a Home Controller and an Index view. That cuased the first problem with the compiler giving…
xiecs
  • 727
  • 11
  • 28
1
vote
1 answer

MVC C# Controller Conflict (site front with area admin)

I can not figure this out. How to solve the problem? AdminAreaReistration cs public override void RegisterArea(AreaRegistrationContext context) { context.MapRoute( "CMSAdmin_default", …