Top "Asp.net-mvc-3" questions

ASP.

Prevent Caching in ASP.NET MVC for specific actions using an attribute

I have an ASP.NET MVC 3 application. This application requests records through jQuery. jQuery calls back to a controller action …

c# jquery .net asp.net-mvc asp.net-mvc-3
include antiforgerytoken in ajax post ASP.NET MVC

I am having trouble with the AntiForgeryToken with ajax. I'm using ASP.NET MVC 3. I tried the solution in jQuery …

asp.net ajax asp.net-mvc asp.net-mvc-3 csrf
How to display a list using ViewBag

Hi i need to show a list of data using viewbag.but i am not able to do it. Please …

asp.net-mvc asp.net-mvc-3 model-view-controller viewbag
Html.Textbox VS Html.TextboxFor

What is the difference between Html.Textbox and Html.TextboxFor?

asp.net-mvc asp.net-mvc-3 razor
How do I specify different Layouts in the ASP.NET MVC 3 razor ViewStart file?

I would like to have 2 separate Layouts in my application. Let's say one is for the Public section of the …

asp.net-mvc layout asp.net-mvc-3 razor
ASP.NET MVC: Custom Validation by DataAnnotation

I have a Model with 4 properties which are of type string. I know you can validate the length of a …

c# .net asp.net-mvc asp.net-mvc-3 data-annotations
How to pass parameters to a partial view in ASP.NET MVC?

Suppose that I have this partial view: Your name is <strong>@firstName @lastName</strong> which is …

asp.net-mvc asp.net-mvc-3 model-view-controller controller asp.net-mvc-partialview
MVC 3: How to render a view without its layout page when loaded via ajax?

I am learning about Progressive Enhancement and I have a question about AJAXifying views. In my MVC 3 project I have …

c# asp.net-mvc asp.net-mvc-3 master-pages razor
ASP.NET MVC 3 Razor: Include JavaScript file in the head tag

I'm trying to figure out the proper Razor syntax to get a JavaScript file for a particular *.cshtml to be …

javascript asp.net-mvc include razor asp.net-mvc-3
Replace line break characters with <br /> in ASP.NET MVC Razor view

I have a textarea control that accepts input. I am trying to later render that text to a view by …

asp.net-mvc asp.net-mvc-3 razor