ASP.NET MVC 4 is the fourth major version of the ASP.NET Model-View-Controller platform for web applications.

learn more… | top users | synonyms

-3
votes
0answers
7 views

asp.net mvc 4 Google map not being displayed after published

I am using google maps api in asp.net mvc 4 application and loading maps by calling this: https://www.google.com/jsapi When i publish application to IIS google maps is loading fine ...
0
votes
0answers
6 views

generate dropdownlist from a table in database

I'm tryng to be more precise to my previous question which can be found here, I got some nice answers but couldn't figure out how to use it in my situation Previous question I got some nice answers ...
1
vote
3answers
18 views

Same view for both create and edit + MVC4

Can we have a single razor view for both Create a Edit operations? If yes, can you please show how we can achieve this? Thank you for the help!! All of yours suggestions are helpful. Keep helping us ...
0
votes
1answer
17 views

How can I make two MVC routes starting with different path names use the same controller in MVC4

I have the following routes: routes.MapRoute( name: "One", url: "admin/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); ...
0
votes
0answers
4 views

Image file's type showing application/octectstream when using uplodify

I'm using uplodify in my app and I'm facing a problem when I'm trying to upload a image in server side it shows that its content type is application/octect stream . what is the reason behind this
0
votes
1answer
15 views

How to show required field validation conditionally from a view

In My MVC 4 application, I have a Multi Select List Box, where I can select multiple values, I also has an Item New Role as one of the list items, which also refers to a model property NewRole. So ...
1
vote
2answers
20 views

Change date format in ASP.NET MVC application

I need to change date format to fit dd.MM.yyyy. I am getting client side validation error... I've tried everything: Web.config: <globalization uiCulture="ru-RU" culture="ru-RU" /> Model: ...
-1
votes
3answers
23 views

style sheet for check box only for ie8

I want different css for ie 8, i am doing like this but not working /* for all browsers other than IE. */ input[type=checkbox] { font-size: 12px; line-height: 1.2em; -webkit-appearance: none; ...
0
votes
0answers
8 views

Membership.GetUserNameByEmail NotSupportedException

I want to check for a duplicate email addresses on my registration page before registering a user. The email address is not the username, it's a separate field in the registration form. Problem is ...
0
votes
1answer
10 views

Error: The entity or complex type cannot be constructed in a LINQ to Entities query

I have a problem with join query with MVC and i dont know why. The entity or complex type 'Tusofona_Website.Models.site_noticias' cannot be constructed in a LINQ to Entities query. My ...
0
votes
1answer
9 views

A referential integrity constraint violation On Update with DbContext

Please see below my Model class, my controller action and my view. When I edit from my view I have got the exception :A referential integrity constraint violation occurred: The property values that ...
1
vote
2answers
26 views

Creating dropdownlist from values in database

I have a table called Roles with three fields Guid RoleId string RoleName string Description In my register.cshtml view I want to have a dropdownlist which shows the list of RoleName from Roles ...
1
vote
0answers
22 views

MVC 4 & Web API. Filling dropdown list from related table

I need to create SPA(single page application) using MVC 4 and Web API. All solutions and tutorials which I found it's just a simple CRUD models without related tables. Question is next. How can I ...
1
vote
3answers
27 views

How can I make my routes that start with /home always direct to the home controller and index action?

I have the following route: routes.MapRoute( name: "Default", url: "home/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); This ...
1
vote
1answer
19 views

Manage NuGet Packages revert jquery to old version

I have updated the jquery version 2.0 but i found that this is not compatible with ie7 and 8 now i want to revert to old version 1.9.0. When i try to install this with Nuget console it gives me error ...

1 2 3 4 5 705
15 30 50 per page