Top "Asp.net-mvc-4" questions

ASP.

How to pass json POST data to Web API method as an object?

ASP.NET MVC4 Web API application defines post method to save customer. Customer is passed in json format in POST …

javascript asp.net-mvc json asp.net-mvc-4 asp.net-web-api
ASP.NET MVC get textbox input value

I have a textbox input and some radio buttons. For example my textbox input HTML looks like that: <input …

c# html asp.net-mvc asp.net-mvc-4 razor
json parsing error syntax error unexpected end of input

I got the following piece of code function pushJsonData(productName) { $.ajax({ url: "/knockout/SaveProduct", type: "POST", contentType: "application/json", dataType: "…

jquery ajax json asp.net-mvc-4 knockout.js
How to use sessions in an ASP.NET MVC 4 application?

I am new to ASP.NET MVC. I have used PHP before and it was easy to create a session …

asp.net-mvc session asp.net-mvc-4 session-variables
How To Accept a File POST

I'm using asp.net mvc 4 webapi beta to build a rest service. I need to be able to accept POSTed …

c# asp.net-mvc-4
How to add reference to System.Web.Optimization for MVC-3-converted-to-4 app

I'm trying to use the new bundling feature in a project I recently converted from MVC 3 to MVC 4 beta. It …

asp.net-mvc-4 namespaces asp.net-optimization
Populating a razor dropdownlist from a List<object> in MVC

I have a model: public class DbUserRole { public int UserRoleId { get; set; } public string UserRole { get; set; } } public class DbUserRoles { …

c# asp.net-mvc-4 razor html.dropdownlistfor
Pass parameter to controller from @Html.ActionLink MVC 4

In this line: @Html.ActionLink("Reply", "BlogReplyCommentAdd", "Blog", new { blogPostId = blogPostId, replyblogPostmodel = Model, captchaValid = Model.AddNewComment.DisplayCaptcha }) I get the …

razor asp.net-mvc-4
How to call another controller Action From a controller in Mvc

I need to call a controller B action FileUploadMsgView from Controller A and need to pass a parameter for it. …

c# asp.net-mvc asp.net-mvc-4
How should I pass multiple parameters to an ASP.Net Web API GET?

I am using the .Net MVC4 Web API to (hopefully) implement a RESTful api. I need to pass in a …

asp.net asp.net-mvc rest asp.net-mvc-4 asp.net-web-api