How to make HTML render line breaks in Asp.net
I am trying to build a code formatting tool. My script gets the whole body text from the server and isolates the code block. I have the code and I am trying to check if there is a semicolon symbol…
I am trying to build a code formatting tool. My script gets the whole body text from the server and isolates the code block. I have the code and I am trying to check if there is a semicolon symbol…
I want to start process with arguments but it throws me an error no file in directory found heres code: Process.Start(@"inject.exe example.dll example_process") This is a bit modified code just for "showcase" first argument is a DLL and second one…
I have a some table in a PostgreSQL database: id internal_id external_id value --- ----------- ----------- ----- 1 1 null 5 2 1 null 3 3 null 2 8 4 null 2 3 5 3 null 2 6 null 4…
What is the purpose of [Serializable], entities can be serialized without this feature. public class NotSerializableModel { public int Id { get; set; } public string? Name { get; set; } public DateTime CreateTime { get; set; } } [Serializable]…
When I was editing my project and tweaking it, I decided to test it, but it won't run. When I looked in the console, it closed with an exit code of 0. Is it a Visual Studio bug? I'm on…
I have a Json value that I want to get only some part of it and ignore the other keys. public class MyClass { public long? id { get; set; } public Order order{ get; set; } } public class…
I have been coding since 1 hour and suddenly I don't know what happened and all my code stopped working. When I am running the code it showing me '>>' this arrow in the terminal. And when I am writing…
I have read a lot about the socket exhaust problem. In general, this never caused me any problems, I always tried to follow the recommendations as much as possible. But now I have a question. I'm going to make a…
I need to sort a txt file by date, I need to work with the info stored in a vector, then sort it. I made a function that opens the file and stores all the lines in the vector "contents".…
I read somewhere on the ASP .NET Core documentation that I don't need to worry about how an instance of my database context will be passed to other controller and model classes as dependency injection will automatically do that for…