My code is simple like : [HttpGet] public ActionResult Login () { if (User.Identity.IsAuthenticated) { return RedirectToAction("Index", "Home");
My all applications were working fine but suddenly all sites under IIS are not loading css, images, scripts. It redirect to login page. If i login it works fi
Given is the following MVC razor code which creates a dropdown from a list: @Html.DropDownList("MyTestList", null, new { @class = "btn btn-default dropdown-to
I cloned the ASP.NET Core SignalR Repo locally, and try opening the solution from within the following environment. IDE Microsoft Visual Studio Enterprise 201
I have an action defined like this: public ActionResult TempOutput(string model) { return View(model); } And also, I have its view define
I am trying to implement Content-Security-Policy with the NWebSec NuGet package The basic configuration level is working at this moment but trying to add nonce
I have followed this tutorial which has worked great, until I modified my DbContext to have an additional constructor. I am now having issues with the resolutio
I have rendered my view like below <div class="row row-margin-zero"> <label class="radio-inline margin-rightt-ten margin-leftt-five margin-top-none
I have set up a microsoft exchange web service to allow me to send and receive data to and from my Microsoft Outlook account. I am attempting to get the saved
I use telegram login widget in MVC App , and follow steps as in post telegram-web-login-widget-setdomain-does-not-work Steps As in Post Here is how the di
I have ASP.Net MVC site. Technology Stack ASP.Net 4.6 C#.Net EF 6 MySQL -Database While I am trying to generate the database using Nuget command:- Enable-Mi
There is a (non-Microsoft) NuGet package that allows upgrading the Mvc3 to Mvc4. There is a (Microsoft) article that explains how to manually migrate from Mvc3
I have given view model.I have to set the value of Amount(which is getting retrieved from table using linq) on a label using Html helper. public class Allocat
I have a list with each element of the list containing a star rating control which allows the user to set their preference for that element. The rating control
We have a MVC application running with SQL Server database. We are using windows authentication, and when we want to give user access to our site we add them i
I'm trying to use CSVHelper to generate a CSV file and send it back to a browser, so the user can select a save location and filename and save the data. The w
I've searched around and can't find an answer to my problem. I've got a View that takes accepts Foo in like so: @model IEnumerable<MyApplication.Models.Foo
In the layout, MVC child actions are called in . However, the the partialView results are not shown in the RenderSection("userProfile", required:false). The Wa
I have a ASP.NET Core 1.0 MVC app in solution X and I have some common projects (.net 4.5.2 class libs) in solution Y. I want to reference the projects in solu
I had an Asp.Net core 2.2 project. Recently, I changed the version from .net core 2.2 to .net core 3.0 Preview 8. After this change I see this warning message