YourMajesty
YourMajesty
CC#
Created by YourMajesty on 2/3/2025 in #help
✅ Can't see code changes when app is running (vs code)
Hello, guys. Microsoft Learn website says that vs code has a way to see code changes to your app, while its running: Launching the app without debugging by selecting Ctrl+F5 allows you to: * Make code changes. * Save the file. * Quickly refresh the browser and see the code changes. But it is not working for me for some reason. I know it won't show logic changes, but it does not show even simple html changes, like new paragraph, style changes, etc. Any thoughts?
12 replies
CC#
Created by YourMajesty on 2/1/2025 in #help
Creates new object instead of updating it
Hello, guys, I have a very simple MVC WebApp and I faced a problem. So thing is for some reason my edit method creates new instance in database instead of updating given object. From what I can tell issue is within my html form, because if I add input field for Id there it works fine.
85 replies
CC#
Created by YourMajesty on 1/23/2025 in #help
Stylesheets
<link rel="stylesheet" href="~/ProjectName.style.css" asp-append-version="true" /> Hello, there, can someone please explain me what this link is refering to. I used search across my whole project and there is no file with such name. I even checked for hiden files. Also when I launch an app and inspect a page on Chrome it will show me that this file was loaded and will show its contents(some css obv). It comes by default with MVC template in _Layout.cshtml file
8 replies
CC#
Created by YourMajesty on 1/20/2025 in #help
MVC vs Razor Pages
Hello guys, I am currently learning .NET and web dev in general. And I've seen there are at least 2 ways to build and app. Using MVC or Razor pages. As far as I understand these 2 are just the way you organise your app, it's structure and they are pretty similar. Razor pages app actually looks like simplified MVC app. So my question is which is more commonly used nowadays and which is "better"( if you can say one is)?
10 replies