skip to Main Content

Asp.net – TempData Peek Issue

I am using TempData for temp storage of a list item. I have used below code in program.cs builder.Services.AddSingleton<ITempDataProvider, CookieTempDataProvider>(); builder.Services.AddSession(); //Other middleware app.UseSession(); On a get request i have created a view model and stored the data from viewmodel…

VIEW QUESTION

Jquery – single form and multiple submit (with multiple value)

I Have a "For Loop" In ASP.NET Core Like This : <button type="submit" Form="FormActive" name="id" value="@item.I"></button> <!--It Will Create SomeThing Like This:--> <button type="submit" Form="FormActive" name="id" value="1"></button> <button type="submit" Form="FormActive" name="id" value="2"></button> <button type="submit" Form="FormActive" name="id" value="3"></button> ... ... ...…

VIEW QUESTION

The 'GetUriByAction' method in the LinkGenerator class in Asp.Net Core is not defined in the Repository layer of the project

The EmployeeLinks class in the Repository layer. using Contracts; using Microsoft.AspNetCore.Routing; using Entities.LinkModels; using Entities.Models; using Shared.DataTransferObjects; using Microsoft.AspNetCore.Mvc.Formatters; using System; using System.Collections.Generic; using System.Linq; using Microsoft.Net.Http.Headers; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; namespace Repository.Extensions.Utility { public class EmployeeLinks :…

VIEW QUESTION

JQuery accordion not working in Razor page

I've spent a few hours digging through here and other sites and can't find the answer. I'm trying to implement a simple accordion in a razor page, but no matter what I try it doesn't work. _Layout.cshtml: <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">…

VIEW QUESTION
Back To Top
Search