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 an application on ASP.NET MVC Core 2.0 using React Template. I have propertie in config file on server side - SiteURL. I need to push it to client TypeScript, and don`t understand how can I make it?  I tried to push them throw Home/Index file...
I have a modal window used to update or add a new object Store.  This modal has a cascading dropdownlist for two properties: Department and District.  How should it work:  We first identify if we are in the situation of creating or updating a Store....
I have found myself in need of scrubbing javascript out of comments being added by users in a .Net Core MVC application. In previous frameworks, this could be achieved by first passing your string into JavaScriptStringEncode.  var comment = HttpUtili...
When I try to use momentjs, installed through bower, my web app runs into the following error when the javascript file for moment is attempted to be loaded:     Uncaught SyntaxError: Unexpected token import   On this line:  import { hooks as moment,...
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 am writing a custom attribute to require a property in a viewmodel if another property has a specified value.   I used this post for reference: RequiredIf Conditional Validation Attribute  But have been encountering issues with the .NET Core revisi...
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 am struggling with the performance optimizations for scripts and CSS in Asp.Net Core MVC app.   I use bootstrap with LoadCSS to preload it. FontsAwesome CSS and JavaScripts are loaded after the content.  My _Layout page looks something like this....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.