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 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...
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....
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 2 anchor links in my view, on which I am trying to hit the HTTP POST method on the controller. The POST method has a condition in which it checks value of a hidden field, and on the basis of the condition, it tries to redirect to different vie...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.