asp.net core mvc

  1. 2033

    JavaScript if statement aren't working with Model props

    <script type="text/javascript"> const BtnFav = document.getElementById('BtnFav'); alert('1'); if (@Model.CurrentWord.IsFavorite) { alert('2'); BtnFav.style.backgroundColor = "yellow"; } else { alert('3'); BtnFav.style.backgroundColor =...
  2. P

    Resolved Delete List element (Model) in Index.cshtml without changing the View

    Hello everyone As mentioned before, I'm working on a Contact List where each one can have a variable number of Telephone objects, in ASP.NET Core MVC. I would like to know how to delete a Contact (and its Telephone objects) from the list (Index.cshtml). I don't know if it would be C#...
  3. 2033

    Remote attribute does't work properly

    I have a viewModel for the Index view. The problem is that when remote attribute is trying to do it's job the IsUnique method in my controller receives name = null, though i expext it to be a value that I put inside input field. It works with another view, model of which is just SetViewModel...
  4. 2033

    (.NET 9 ASP.NET MVC) A problem with a dropdown menu in a header working every other time with modals

    Fisrt of all let me demonstrate a problem in this short video. I have a button that displays a modal window. On click event of that button there is a script that puts a view inside modal-body. showInPopup = (url, title) => { $.ajax({ type: "GET", url: url, success...
Back
Top Bottom