I'm trying to add and delete claims (roles in this case) dynamically after a successful login using Identity 2 in Asp.Net 4.5.2. My application has an authentic
I'm getting "The type arguments for method 'GridHelper.Grid(HtmlHelper, IEnumerable)' cannot be inferred from the usage. Try specifying the type arguments expli
I'm working on an app which uses the Factory pattern to create new objects. In the Factory Class I've added a new Private method called SendAp
I have a handler method in razor page with name OnGetExpense(UsePayload payload) page.cshtml: <input type="hidden" asp-for="Filters.From" value="@Model.Filte
I have implemented a checkall checkbox for the table but the table has pagination and DOM only gets the elements currently showing on the page. my implementatio
I want to divide my NameSurname variable to take name and surname seperately. How can I use left, right methods for this? public ActionResult SearchPerson(strin
We are using Azure Web App Service to host our backend API in .NET 4.6. We saw a particular web API ran 3 times exactly after 2 minutes interval. Out of those 3
We have hosted a ASP.NET Core v3.1 Website in IIS. But when I try to view the page getting internal server error. This issue only occurs in the specific machine
I'm getting System.NullReferenceException: 'Object reference not set to an instance of an object.' error in Index2.cshtml file after deserializing my TempData o
I'm trying to connect my ASP.NET Core MVC application to SQL Server. I'm using the Visual Studio for mac. I wrote the connection string like below : "Connect
I am new to Visual Studio and ASP.NET and I am watching a tutorial by Mosh Hamedani on MVC development. The tutorial is a couple of years old, but when he crea
Building a MVC with firebase but prompt this error during runtime.Anyone knows how to solve this?
I'm trying to fetch records form Azure database using Ado.net I used SqlDataReader class for that. Even though the data fetch is successful, I don't know how to
Okay, this quite big so just skip to the last section for a brief. I have a demo application (netcore 6.0) built on micro-service architect, suppose we have 3 s
I'm having trouble data binding JSON to the SyncFusion Schedule. Referring to this article In my .cshtml I have this <div class="col control-section">
When running the get method to return a view populated with details, I get the exception saying: System.InvalidCastException: 'Unable to cast object of type 'Sy
I am using JsonLogic to validate my input payload with the rules defined using JsonLogic. I am able to test the rules using "Play with it" tool and my rules wor
We have ASP.NET MVC application which is running on windows server machine. I have renamed classes to satisfy sonar scanning. The code deploys and runs without
I'm attempting to add an AAD service dependency to a new ASP.NET Core Web App (MVC) project. I went to Connected Services, clicked on "Add a service dependency"
Today I was working on a .NET Core 3.0 project (VS 2019). I added a CSS class to a <span> on one of my pages. That's it. Nothing else. I figured publishin