So my problem is like that, When I am trying to pass the model in repository method on controller I getting error like this Object reference not set to an insta
I'm new to MVC so I hope to get help regarding my question. I am making users upload images. the image path will store in the database but the image itself will
Have been through many artciles, but didn't get enough clarity on the usage of the 3 different models mentioned. As we know, View Model - is
So I have a table, Equipments, that contains assets. There is a table connected to this one in a 1-many relationship that logs each time it is inventoried, by w
I have a pretty big ASP.NET MVC site with 100 controllers and thousands of actions. Previously the header image that was defined on the Site.Master page was ha
Note: This is written in asp.net mvc 5. That is the tech I am using for this. I am used to displaying certain data when I use @Html.Raw to show data from a Mode
I'm writing an application in C#. It pulls the data from Cloudant NoSQL DB. But when I'm trying to create the Http client: HttpClient client = HttpClientFacto
I am trying to launch ASP.NET project on a local computer. IIS responds with 401.0 status code, stating that "authenticated user does not have access to a resou
The myriad of different web.config settings have always been a bit of a mystery to me. I'm glad Microsoft has cleaned up some of the content put there by defaul
Thanks in advance. Can anyone please help me get this button working so I can display a row from the Northwind database 'only' when the button is clicked. I h
I have an MVC5 application that has a method populates and returns a partial view. Since the method accepts an ID as a parameter, Id like to return an error if
I am using Entityframework context, i dont know how to bind to view. I am grouping items by gender public SQLChallengeEntities Sqlcontext = new SQLChallengeEn
I'm completely new to Rhino Mocks and mocking in general. I'm still wrapping my head around how to code the mocks. I have a test class which contains something
I have a Kendo Grid with some custom editors, one is a multiselect. I have a cshtml file for the editor that looks like so: @model IEnumerable<ManageSitesInT
I am using Google Ads to track purchase conversions on my Ecommerce website. When a user clicks on my Google Ad for a product and then makes the purchase and la
I have installed all required packages for this command, when i try to run this command on my console its failed to build. Kindly please assist to resolve this
When I want to add controller using ASP.NET Core MVC with views: enter image description here This is my DbContext class: namespace Infrastructure { public
I have a <label> element in my ASP.NET core MVC project, that splits to multiple lines instead of showing in a single line. I've inspected the element in
Here is my code: string idString = System.Web.HttpContext.Current.User.Identity.Name; int customerID = int.Parse(idString); Customer customer = db.Customers.
I am learning dotnet core 6, and making application for Intra. I need to get user data (user name and surname, and user groups) from company's Active Directory