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 Ajax calls and … Read more
I am having trouble with the AntiForgeryToken with ajax. I’m using ASP.NET MVC 3. I tried the solution in jQuery Ajax calls and … Read more
How do I access a key value from web.config in my Razor view. This is in my web.config in the Web Project root … Read more
I’m trying to add a class to an input. This is not working: @Html.EditorFor(x => x.Created, new { @class = “date” }) 16 … Read more
An expression tree may not contain a call or invocation that uses optional arguments return this.RedirectToAction<MerchantController>(x => x.Edit(merchantId)); Where edit had a second, … Read more
Here’s the About.cshtml from the default MVC 3 template: @{ ViewBag.Title = “About Us”; } <h2>About</h2> <p> Put content here. </p> I would … Read more
I have an ASP.NET MVC 3 application. This application requests records through jQuery. jQuery calls back to a controller action that returns results … Read more
I have ASP.NET MVC3 app and I have also form for add news. When VS2010 created default view I have only text inputs … Read more
I just started a new MVC 3 project. Can anyone tell me what <add key=”webpages:Enabled” value=”false” /> in my web.config file does? 3 … Read more
I have a simple actionmethod, that returns some json. It runs on ajax.example.com. I need to access this from another site someothersite.com. If … Read more
Could any body explain, when to use TempData ViewBag ViewData I have a requirement, where I need to set a value in a … Read more