The ASP.NET MVC Framework is a Microsoft web application framework that implements the model-view-controller (MVC) pattern. The latest release of the framework offers REST-style web services development capability, also known as Web API.

learn more… | top users | synonyms (6) | asp.net mvc jobs

0
votes
0answers
8 views

Retuning valid JSON from JSON Formatter on HTTP OK for WebAPI

I use WebAPI for various REST calls, and have always on success (when I don't need data) just used return new HttpResponseMessage(HttpStatusCode.OK); However with jQuery 1.9 having a breaking ...
0
votes
0answers
4 views

Authorize roles via database

I am building an ASP.net MVC 4 application. In the past I have used the [Authorize] attribute to authorize users according to their role(s). However, I now need to a more flexible solution where ...
0
votes
0answers
12 views

ASP MVC Localization issue with Partials

We have ASP.NET MVC 4 web application. Pretty simple and standard. We use Razor view engine. We also support multiple (currently two) languages using .NET standard resources (resx) files. We have very ...
0
votes
0answers
8 views

How to make Windows Authentication to work for only for specific members in the organization?

I am creating an Intranet Website which uses Windows Authentication. I want to use it for only certain specific members of my organization. I have a line of code in my _LogOnPartial.cshtml page ...
0
votes
3answers
27 views

Convert bool? to bool in View

i have checkbox in my which is like this @Html.CheckBoxFor(model => model.SKUs.Jewish) but my Jewish in database is nullable type so it gives me an error cannot implicitly convert type 'bool?' to ...
0
votes
0answers
7 views

GZip compression from code

Is there anyway I can do dynamic GZip compression from code, when the module is not installed on a IIS Server ? My hosting company does not want to install this module on the server, still waiting for ...
0
votes
0answers
18 views

which framework is better knockout or anglar js for making SPA if we have Asp.net MVC on server side

I am working on a product from scratch and we are using Asp.net MVC 4.0 on server side and entity framework for data layer. we are confused about client side framework between the above two. we are ...
0
votes
1answer
12 views

Editable pages approach

I'm working on application with some sort of CMS features. I need some pages to be editable. For instance: you can edit a text block right in your browser you can add and remove different modules to ...
0
votes
1answer
30 views

Getting a null exception as model in razor

i have an error's view in my asp.net mvc4 application like this: @model System.Web.Mvc.HandleErrorInfo @{ ViewBag.Title = "Erreur"; } <p>Take it easy</p> <hgroup class="title"> ...
0
votes
0answers
5 views

Captcha in Orchard module

we have created a module in orchard. Our module has controllers, Actions and views. Some of the controllers are like pure MVC (no orchard involved). We have to implement captcha in one view/action (no ...
0
votes
1answer
29 views

Personalize the error view in razor

I have an Asp.net mvc4 application, in which I would like to personalize the exception page <customErrors mode="On" defaultRedirect="~/Views/Shared/Error.cshtml" ></customErrors> the ...
0
votes
3answers
30 views

Retrieve Data from database error

I just want to show the data, but I got this error: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[MvcApplication5.StaffTable]', but this dictionary ...
0
votes
0answers
23 views

Custom Data Model for multiple Models

I have 3 different models/tables that each can store custom fields. My 3 models are Customer Product and Stock. Is there anyway to create a CustomData model mapped to a single table that can handle ...
0
votes
2answers
22 views

ASP.Net MVC Bundler not including my .min file in Release

I have an issue with the mvc4 bundler not including a file with extension .min.js. In my Scripts folder i have two files: bootstrap.js, bootstrap.min.js In my BundleConfig class, I declare #if ...
1
vote
0answers
9 views

Import contacts from Hotmail using c#

I am trying to import contacts from Hotmail. For that i am using following code private const string wlCookie = "wl_auth"; private const string clientId = "...clientId..."; private const ...

1 2 3 4 5 4078
15 30 50 per page