All Questions
10
questions
0
votes
1
answer
1k
views
Uncaught ReferenceError: $ is not defined in Power BI Embedded
I'm trying to embed Power BI dashboard in my ASP.NET Core 2.1 Application. I get a javascript error while running this application saying $ is undefined. I have already defined this variable in a ...
0
votes
2
answers
1k
views
How to access IMemoryCache from C# and Javascript
I stored values in my cache using my Controller class using the dependency IMemoryCache. I am also accessing my cache and get few values from it like so:
//IMemoryCache initailized before this ...
1
vote
1
answer
6k
views
What the preferred way to add view-specific JavaScript to an Asp.Net Core 2 MVC application?
I have JavaScript that I'd like to add to a single Razor view (CSHTML), which should be associated with an input that filters a TABLE:
$(document).ready(function () {
// added for testing
...
0
votes
2
answers
5k
views
Asp.net Core MVC Dynamically add Select List via JS
I am trying to provide a view where people will be able to create a list of categories and sub categories. Therefore I need to allow users to dynamically add Rows.
Each Row will allow user to add a ...
1
vote
0
answers
1k
views
ValidateAntiForgeryToken Doesn't Work with Axios POST in ASP.NET Core
Good day,
I have this code that uses RequestVerificationToken in sending a request to the web controller method. I'm using axios to send my specific request.
Here is my client side code:
var ...
1
vote
2
answers
2k
views
Store and display HTML string while avoiding JS, in ASP.Net Core 2
I wish to store a formatted text using a Rich-Text editor (QuillJS) and while displaying back it should be rendered as HTML. By default the views encode the HTML to avoid JS Injection, and so the data ...
0
votes
1
answer
739
views
Get JavaScript runtime error: Access is denied error when embedding powerbi report. in .Net core 2.0 web app
When embedded powerbi report in Asp.net core 2.0 MVC page. I got "
Exception was thrown at line 1000, column 335 in https://app.powerbi.com/13.0.3936.157/scripts/reportembed.externals.bundle.min.js
...
1
vote
1
answer
312
views
asp.net core 2.0 load unminified script for specific view
So I want to load a specific javascript file for one particular view. At the moment I implemented it like this (production code):
<script [email protected]("js/someLibrary.min.js")></script&...
0
votes
2
answers
7k
views
ASP.NET Core with form tag - validate form onsubmit and prevent submission
I have an ASP.NET Core 2.0 project where I use the form tag for a submission. Now I want to add some client side validation on my form submission. So I use the onsubmit tag on my form like this:
<...
2
votes
2
answers
2k
views
How to refresh a ASP.Net MVC page when information model is updated
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 ...