Skip to content
Advertisement

Tag: asp.net-core

SVG cannot be displayed as an image

I’ve got svg string file on database. I want to show it on my Asp.Net Core projects view. I’m calling my data as Model from controller. When I’m trying to do it, it displays as text on my page. Here is my svg: And here is my code on Index.cshtml file: How can fix this? UPDATE: Answer I’ve solved problem.

ASP .Net Core 3.1 octokit rest npm package issues

I use npm and a gulpfile.js to essentially export npm packages to a ‘lib’ folder under ‘wwwroot’; this works a treat and whenever I update a specific npm package if it’s in my gulpfile.js watch list it’ll push the contents to the ‘lib’ folder. The issue I have is that I used to use a manually extracted copy of ocktokit-rest

Access Messages from Message Center

Hi I’m try to display the top 5 messages from the message center on the homepage. But I’m not sure what I’m doing wrong. I try to get the messages from the message view model here is my code. View model MessageViewModel.cs Controller Cshtml Answer To display top 5 records, we should use the “OrderByDescending()” to sort the message, and

Changing an Input value in Blazor by javascript doesn’t change it’s binded property value

I’m building a website using app.net core 3.1 with blazor. In one of my components I have : <input @bind=”Message” type=”text” id=”input-message”/> Message is just a string property. and I have javascript: document.getElementById(‘input-message’).value = ‘some text’; The problem is after running the above js, <input> value changes but Message value doesn’t, and of course if I type or paste something

Advertisement