I have a View Component that contains some jQuery in the Razor (.cshtml) file. The script itself is quite specific to the view (deals with some some configuration of third-party libraries), so I would like to keep the script and HTML in the same file...
I have a modal window used to update or add a new object Store.  This modal is called remotely which information is loaded from a GET method constructed in ASP.NET.   Button that calls the modal:  <div class="btn-group" id="modalbutton...
I'm displaying, with success, a ValidationSummary containing the errors that the jQuery unobstrusive validator detects :  <form asp-controller="PlanningYearsEditModal" asp-action="EditPlanningYear" data-ajax="true" data...
I'm trying to post FormData including both a File and a Collection.  This is my Model:  public class Content {     public string Name { get; set; }     public string Link { get; set; } } public class Model {     public IEnumerable<Content>...
I'd like to call the method "EditProject" of my controller "Project" with a parameter being the Id of the project.  I've seen many people using Ajax, but the problem is I'd like to call the controller which in turn will re...
I have a Web application in .net Core 2.1 using signalR. I need to pass HubUrl into  custom javascript file. Is that possible in .net Core?  Sample of js code:  const connection = new signalR.HubConnectionBuilder() .withUrl('http://localhost:5000...
I'm working in ASP.Net Core 2.0 MVC. I need my webpage to always show the latest information from the model. But the information model is constantly updated.  Is there a way to only refresh the page when the model is changed? (Maybe with a OnChan...
I have a line chart http://www.chartjs.org/docs/#line-chart-introduction I want to populate with data from a viewmodel in MVC6/Razor  My Viewmodels are  public class LeaderboardViewModel {     public List<LeaderboardViewEntry> LeaderboardViewEn...
I need to upload a DICOM image using ASP.Net Core SDK 3.0 preview8 using Blazor Framework.  Is JSInterop needed in this case? How does that helpful in solving the problem?  What are the required steps to follow in this case? A sample code will be use...
I'm using google api to show a map. In my controller I wrote the following c# code:  var sedi = new List<string>(); sedi.Add("Via Gavinana, 19, Roma"); sedi.Add("Val de Seine, 94600 Choisy le Roi"); sedi.Add("Street 21,S...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.