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
0 answers

Separating out Areas using subdomains completely from main site Mvc 3

I have an area as Admin . And it has got a controller as SigninController . Now this Area is for Admin Area . which I am supposed to map as http://admin.localhost/ Now what Happens is I also have a SigninController in root . So I currently have to…
0
votes
1 answer

What needs to be in place in order to have a pagedList return to a post action?

I'm not gonna post up aload of code (again) to try and figure this out. This is an asp.net MVC 3 application using razor views. I just want to know what exactly needs to be in place to allow for a view using.. @model IPagedList To Post…
mkell
  • 711
  • 2
  • 13
  • 31
0
votes
1 answer

use different name in area url in mvc

I have created a area named "User" in my mvc project. So now i can access that area using the url mysite.com/user. Now can i change the name of the area in url ? i want to access my area using the url mysite.com/admin I can do this by changing the…
0
votes
0 answers

unique selected value from dropdownlist

i have a table Rubriqueintermediare with a rubriqueIntermediareId and rubriqueId as a foreign key from the table Rubrique:So in my rubrique intermediare i have a listbox of rubrique i want to compare viewdata list values with dropdownlist selected…
ODE
  • 285
  • 5
  • 22
0
votes
1 answer

Validate a unique input field from a foreign key

i have a table rubriqueintermediare with two fields rubriqueId and rubriqueintermediareId which is a foreign key from the table Rubrique. My table Rubriqueintermediare have a listbox of the libelle field from the rubrique table. When I add a new…
smarttech
  • 133
  • 1
  • 4
  • 11
0
votes
1 answer

Disable dropdown list in MVC3

I have filled up dropdown as: Controller: var db = new TransFormezEntities() ViewBag.fldCountry_ID = new SelectList(db.tblCountries, "fldCountry_ID", "fldCountryName",…
0
votes
1 answer

how to find current request is ajax or not in mvc3 view javascript

i have div with max height and overflow - auto, when div size overflows scroll bar added automatically, but i set $("#itemsdiv").scrollTop(10000); so that scroll bar is always at bottom . Now i want that if view is load with ajax request then…
banny
  • 859
  • 7
  • 12
0
votes
3 answers

adding attributes in HTML tag of specific views only?

I am working on a MVC application with razor view engine. HTML, Head and Body tags are placed in shared view _Layout.cshtml and other views are using this as layout. While supporting application I am in need to add a custom attribute in some of…
Toubi
  • 2,469
  • 10
  • 33
  • 49
0
votes
2 answers

not able to see the view after postback

Hi I have got a drop downlist that I am binding that one in controller I have got one button in view with that I am doing some validations that's working fine, when I submit the button for validation check i am not able to get the view with error…
Glory Raj
  • 17,397
  • 27
  • 100
  • 203
0
votes
1 answer

How to make my MVC3 project a Mult Tier (DAL, BLL and UI) project?

I am creating an application using MVC3. I follow the examples in - http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application Now, I like to make this…
0
votes
1 answer

How to share the same MVC3 View in 2 different websites?

I am creating an MVC3 web application. It has an Administrator side and a Client Side. They will be hosted on SEPERATE servers. The client side will be available ONLIE via internet and the Admin will be an INTRANET application. There are certain…
user2215116
  • 91
  • 2
  • 9
0
votes
1 answer

How to fix the size of the div to print on a4 size paper?

I have a div of size 400*400px. I wrote a function to print it as follows function CallPrint(strid) { var prtContent = document.getElementById(strid); var WinPrint = window.open('', '',…
Ayush
  • 485
  • 2
  • 6
  • 19
0
votes
1 answer

Error in my code first approach i have EF 4.1 with VS 2010

1) i have Enttiy Class In which have three tables whose code is below given using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Data.Entity.ModelConfiguration; using System.Linq; using…
0
votes
1 answer

I have remove ACL rights of users but they still have access to my views

I hope someone has an idea what's happening in my project. I have an issue with security. It's a MVC 3 web application with Areas. I have remove access to a group of users through ACL. However, they are still able to see the view through a Web…
Mathieu G
  • 405
  • 5
  • 18
0
votes
1 answer

Removing focus from a mvc ajax dropdown after using select by jquery

I have an AjaxDropDown and I am calling the onchange event whenever the dropdown value changes. In the ajaxstop function I am binding data to the drop-down and selecting some value. So the focus is currently on dropdown as I am using select.…