Top "Asp.net-mvc-3" questions

ASP.

MVC3 DropDownListFor - a simple example?

I'm having trouble with DropDownListFor in my MVC3 app. I was able to use StackOverflow to figure out how to …

c# asp.net-mvc-3 html.dropdownlistfor
Proper way to use AJAX Post in jquery to pass model from strongly typed MVC3 view

I'm a novice web programmer so please forgive me if some of my "jargon" is not correct. I've got a …

asp.net-mvc-3 jquery
Display only date and no time

In MVC razor, I am putting current date in the database like this.. model.Returndate = DateTime.Now.Date.ToShortDateString(); Since …

c# asp.net-mvc asp.net-mvc-3 datetime
How to render a DateTime in a specific format in ASP.NET MVC 3?

If I have in my model class a property of type DateTime how can I render it in a specific …

asp.net asp.net-mvc asp.net-mvc-3
Injecting content into specific sections from a partial view ASP.NET MVC 3 with Razor View Engine

I have this section defined in my _Layout.cshtml @RenderSection("Scripts", false) I can easily use it from a view: @…

asp.net asp.net-mvc asp.net-mvc-3 razor partial-views
ASP.NET MVC 3 Razor - Adding class to EditorFor

I'm trying to add a class to an input. This is not working: @Html.EditorFor(x => x.Created, new { @…

asp.net-mvc asp.net-mvc-3 razor
Why is JsonRequestBehavior needed?

Why is Json Request Behavior needed? If I want to restrict the HttpGet requests to my action I can decorate …

c# .net asp.net-mvc asp.net-mvc-3 security
format a number with commas and decimals in C# (asp.net MVC3)

I Need to display a number with commas and decimal point. Eg: Case 1 : Decimal number is 432324 (This does not have …

c# asp.net-mvc-3 formatting number-formatting
What is the @Html.DisplayFor syntax for?

I understand that in Razor, @Html does a bunch of neat things, like generate HTML for links, inputs, etc. But …

asp.net-mvc-3 razor
RestSharp JSON Parameter Posting

I am trying to make a very basic REST call to my MVC 3 API and the parameters I pass in …

c# json asp.net-mvc-3 rest restsharp