Questions tagged [areas]

77 questions
1
vote
1 answer

Can I nest areas in ASP.NET MVC?

I want the follow URLs in my MVC application: /Admin/Accounts/Groups /Admin/Accounts/Users I know I could create an Area named Admin, and then create Groups and Users controllers inside that area. Could I instead create nested areas? (An Area named…
ozsenegal
  • 4,055
  • 12
  • 49
  • 64
1
vote
0 answers

How to implement authentication in multiple "Areas" of asp.net MVC

I have an asp.net mvc application. The application is virtually separated by "Areas". Both Areas have their own Login controllers for authentication. Both Areas have their own Home controllers. Questions: How do I implement forms authentication in…
invincible
  • 109
  • 11
1
vote
2 answers

MVC5 Routing Go to specific Areas view when root url of site is entered

I'm not even sure I know the right terminology to articulate this correctly. I'm new to MVC and have inherited a partially complete project. The project uses Areas, I don't understand MVC and routing enough to resolve the following: I have a site eg…
Math3w
  • 17
  • 1
  • 7
1
vote
1 answer

Renderpartial or renderaction

have an action that generates active vacancies. The code is below; public ViewResult OpenVacancies() { var openvacancies = db.GetActiveVacancies(); return View(openvacancies); } I want to use this list on…
femi
  • 974
  • 2
  • 13
  • 44
1
vote
1 answer

MVC 5 bundles internal server error 500

I am trying to use bundles' feature for our project. Before we had no problems with bundles, because we used debug mode, so minification was switched off and scripts were generated correctly. Everything worked fine. In release mode I faced a problem…
Andrew
  • 7
  • 4
1
vote
1 answer

HTML - how to connect area tags

How to make the script interpret two different area tags as one? For example, I have a muscles map here FIDDLE muscles
1
vote
3 answers

How do I not instantiate an instance of Cassini for each Area in my application?

I've been implementing areas, but have found that it instantiates a development server for each area when it launches Cassini. Is this really necessary? MSDN is having me setup these areas as separate web apps, Why can't I put them into class…
RailRhoad
  • 2,128
  • 2
  • 25
  • 39
1
vote
2 answers

Change an input value when clicking on an area

I have an image in HTML/PHP with different areas. When I click on one of the areas I want my input field above to change. How do I do that? Trying to use a normal $variable but I dont get that to work either. I am very new to HTML. Thanks in…
0
votes
1 answer

Calculating area of fitted function to compare with results - Mathematica

H! I've spent a lot of time reading Mathematica's Document Center and stackoverflow (among other sites), but I haven't found any answer to my question: How in Mathematica I can compare areas (quantitatively) of function (to be precise - results)…
John Smith
  • 29
  • 1
0
votes
2 answers

asp.net MVC 3 RegisterArea with multiple optional id's not working

I am trying to capture multiple optional parameters in an ASP.NET web application. When I define the MapRoute in RegisterArea(), it is breaking the Html.ActionLink() methods. The following code works: Public Overrides Sub RegisterArea(ByVal…
0
votes
1 answer

How to reduce number of sub-folders in MVC Areas?

I have an asp.net MVC3 application, and I'm using Areas. By default, I understand the setup would look like this: Areas\ Orders\ Controllers\ HomeController.cs (Action method: Index) OrderController.cs (Action…
Raymond
  • 3,382
  • 5
  • 43
  • 67
0
votes
1 answer

ASP.Net MVC3 Areas and Security

I have a public facing website and need to create an "admin" site for managing the content of the website. I would like to create an "Area" for admin functionality and secure just the Admin area using forms authentication. Is this possible? If I…
Tom Schreck
  • 5,177
  • 12
  • 68
  • 122
0
votes
1 answer

ASP.NET MVC, Should I keep entire app in areas?

Imagine that I have a store. I have an admin side to the store located in an area called "Admin". This makes sense. But should I also have an area called "Public" for the public facing side of the store? Or should I just leave the public side at…
Paul Knopf
  • 9,568
  • 23
  • 77
  • 142
0
votes
1 answer

.net MVC proper way to link to views within an area

I have a .Net MVC app with a couple areas, one of which is called Admin. When I execute /Admin/Home/Index, the Index() method in the Admin area Home controller executes and the correct Index.cshtml is returned. So far, so good. My issue is related…
CKormann
  • 3
  • 3
0
votes
2 answers

asp.net core 2.1.0 Publish customised identity UI views

Customised Identity UI razor pages not being deployed to server when publishing to IIS using Web Deploy. Is there any specific configuration I need to add to use ? According to Docs is already included in in .csproj file.
Mudasar Rauf
  • 544
  • 7
  • 18