Can someone format the code below so that I can set srcript variables with c# code using razor?  The below does not work, i've got it that way to make is easy for someone to help.  @{int proID = 123; int nonProID = 456;}  <script type="t...
Could anyone please tell how to pass dynamic values using Url.action().  Something Like,  var firstname="abc"; var username = "abcd"; location.href = '@Html.Raw(@Url.Action("Display", "Customer", new { uname = fi...
I am trying to setup 2 CORS policies.  One as an api default and the other to use on Controllers as I need them.  The reason I want to do this is because I have an endpoint that takes in an object with email info and sends an email (to use with the c...
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'm having the following code on the client side:  fetch("/music/index", { headers: { "Content-Type": "application/json" } })     .then(response => {         if (!response.ok) {             throw response;         }...
C# model class  public class SubCategoryTwoViewModel {     public long Id { get; set; }     public string SubCatTwoName { get; set; }     public CategoryViewModel Category { get; set; }     public SubCategoryOneViewModel SubCatOne { get; set; }     p...
I'm using Google Charts to visualize some metrics and I've ran into a bit of a snag.  Right now I have a bar graph that looks like this (code below) and the code behind it is  Javascript  <script type="text/javascript" src="htt...
This is similar to below but without Ajax. I am using JavaScript and XMLHttpRequest  AJAX post data is null when it reaches the ASP.NET Core 2.1 controller  Everything works good in ASP.NET MVC but I am learning ASP.NET Core MVC.  A button in Home.cs...
I do not have JavaScript intellisense working after installing jQuery 2.2.4 (as one example) in a ASP.Net Core 1.0 (461) structured application.  This means we now have wwwroot/lib for the script packages.  The old route of putting a _references.js f...
In my .net MVVM application I have several view components that are used to render dropdownlists populated from the database. I have discovered that I'm unable to manipulate (re-select) items in the drop down list through jquery after they are re...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.