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...
I am trying to understand the difference between regular expressions that are used in JavaScript and .NET. I have read couple of articles on it,  Differences between C# and JavaScript Regular Expressions? https://www.codeproject.com/Questions/626385/...
i have a problem in passing model objects to a javascript function in .cshtml(asp.net Core project). I have done a lot of search,but can't find a solution to solve this problem. I build a web application use ChartJs line sample.  web app js files...
I am creating custom attribut for validation to override RegularExpressionAttribute in .Net Core, and Implemented IClientModelValidator for client side validation. validation is apply on field but didn't display Error message for it. ModelState.I...
When disabling server-side rendering using the Angular 2 Webpack starter (using the Visual Studio Asp.Net Core Template Pack - https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ASPNETCoreTemplatePack) I get a blank page with the erro...
Following the guide I arrived at the point where I need to create an instance of Vue (which seems to work). However, I also need to provide an instance of Vuew Router into the constructor of Vue, as shown below.  const router = new VueRouter({ routes...
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 added some js files which were exported from Adobe Muse to my wwwroot/js folder. However, when I check the console, it doesn't look like these folders can be found.   I am calling the scripts using:      <script src="~/js/require.js?crc=...
Before the final release of signalR core. I was able to send the transport when defining a new HubConnection (JavaScript)  var cnn = new signalR.HubConnection("/myhub",                                           {transport : signalrR.Transport...
I am using signalR core with angular6 and I am receiving messages but in console I alwazs get this error.  What does it mean?  System.IO.InvalidDataException: Invocation provides 1 argument(s) but target expects 0.    at Microsoft.AspNetCore.SignalR....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.