Top "Asp.net-mvc" questions

The ASP.

JQuery - $ is not defined

I have a simple jquery click event <script type="text/javascript"> $(function() { $('#post').click(function() { alert("test"); }); }); &…

javascript jquery asp.net-mvc
A potentially dangerous Request.Form value was detected from the client

Every time a user posts something containing < or > in a page in my web application, I get this …

asp.net asp.net-mvc validation html-encode request.form
Send JSON data via POST (ajax) and receive json response from Controller (MVC)

I created a function in javascript like that: function addNewManufacturer() { var name = $("#id-manuf-name").val(); var address = $("#id-manuf-address").val(); var phone = $("#…

jquery ajax asp.net-mvc json
Passing data to a bootstrap modal

I've got a couple of hyperlinks that each have an ID attached. When I click on this link, I want …

javascript jquery asp.net-mvc twitter-bootstrap
RedirectToAction with parameter

I have an action I call from an anchor thusly, Site/Controller/Action/ID where ID is an int. Later …

c# asp.net-mvc controller redirecttoaction
HTML button calling an MVC Controller and Action method

I know this isn't right, but for the sake of illustration I'd like to do something like this: <%= Html.…

html asp.net-mvc
HTML.ActionLink method

Let's say I have a class public class ItemController:Controller { public ActionResult Login(int id) { return View("Hi", id); } } On …

c# .net asp.net-mvc html-helper actionlink
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
How to open a URL in a new Tab using JavaScript or jQuery?

How to open a URL in new tab instead of new window programatically?

javascript jquery asp.net-mvc
Can I set an unlimited length for maxJsonLength in web.config?

I am using the autocomplete feature of jQuery. When I try to retrieve the list of more then 17000 records (each …

asp.net asp.net-mvc json