Category : asp.net-core

I have the following code to display confirmation dialog and submit form but button first click doesn’t work, I have to click twice. Any idea? <div class="list-group-item list-group-item-action" style="background:#fff !important; clear:both"> <div id="divPageLevelButtons" class="row justify-content-end pb-2"> <div class="col-md-2"> <button class="btn btn-primary" type="button" id="btnSave" role="button"> @(Localizer["Save"]) </button> </div> </div> </div> <div id="confirm"></div> and I have the ..

Read more

I’m migrating an existing website to Blazor WASM on .NET Core 5 and i’ve had some challenges initializing/calling this plugin from blazor. See HTML and JS code below: On my current website I initialize this plugin as follow: <script src="./hs-unfold.min.js"></script> <script> $(document).on(‘ready’, function () { // INITIALIZATION OF UNFOLD // ======================================================= var unfold = new ..

Read more

How can I pass correctly C# dictionary into typescript Map. [HttpGet("reportsUsage")] public IActionResult GetReportsUsage() { //var reportsUsage = _statService.GetReportsUsage(); IDictionary<int, int> test = new Dictionary<int, int>(); test.Add(1, 20); test.Add(2, 30); test.Add(3, 40); test.Add(4, 50); test.Add(5, 70); test.Add(6, 60); test.Add(7, 90); test.Add(8, 30); return Ok(test); //return Ok(reportsUsage ); } In angular: getReportsUsage() { return this.http.get<Map<number, number>>(`${environment.apiUrl}/stats/reportsUsage`, ..

Read more