Skip to content
Advertisement

Tag: asp.net-mvc

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.

Build a view model for c# using jQuery

I have one view model and i’m pass that view model into controller, but one of the model property is a list of other class. so i’m not able to bind it via jQuery. I have the following view model. ToolsParamsBlockViewModel class that is used as list type here is my controller method that handle viewmodel data and finally im

How to print Model Value of ASP.NET MVC in alert?

I have a MVC Code which seperates DateTime into two input fields and a button which save changes Now How can I combine those two dates and time and show them on alert on clicking on save changes using jquery. My jquery Code is :- Answer The following code will show the date and time in a alert box

Advertisement