I can't get decimal number – Postgresql
I am making a mvc project and I am trying to do post the data but when I tried the post decimal number it isn't sent right like this (I am writing 10.50 I am getting 1050 or writing 10,50…
I am making a mvc project and I am trying to do post the data but when I tried the post decimal number it isn't sent right like this (I am writing 10.50 I am getting 1050 or writing 10,50…
I've tasked myself with creating a relatively simple user control (a bootstrap nav bar with some extra JS thrown in) just to increase my handle on how such things function. Ideally, it would look as follows: <abc:NavBar ID="nvbTest" runat="server"> <NavButtons>…
I have the following Json snippet being returned from an API. I want to deserialize into a Typed class however the property names are dates so they change with each call. How do I do this? "watts": { "2022-12-19 08:14:00":…
I want to deserialize a response from RestResponse in C# (MAUI). request.AddBody(body); RestResponse response = await client.PostAsync(request); if (response.IsSuccessful) { var list1 = Newtonsoft.Json.JsonConvert.DeserializeObject<List<object>>(response.Content); } Here, inside the if block the response I want in a list of objects but…
Why do these C# LINQ Queries to find a Minimum or Maximum with Where criteria fail? I am working on a project where I want to run queries on a column in a database to find (a) the largest value…
I'm calling an async method which is located in App.xaml.cs file. I'm calling this method from my c# file of home page (HomePageView.xaml.cs). I don't know why but I'm getting this error: System.Runtime.InteropServices.COMException: 'The application called an interface that was…
From an external webservice i receive either // jsonWithConfig // property config is an object {} {"config":{"c1":"All","c2":"is peachy"},"message":"We found a config object"} // jsonNoConfig // property config is string with the value null {"config":"null","message":"Config is null"} I want to deserialize…
FromHeader only has a Name property and doesn't have description. How do I change the description? public async Task<IActionResult> Test([FromHeader] string Authorization) { }
This is my first using a database. I've made an application that contains tables in dbForge through mySql localhost with XAMPP. I copied all my files and downloaded the latest 6.0 framework on the other PC, but it does not…
I tried with this code, but it only displays whether a given string is palindrome or not. I want to extract and display all the possible palindrome substrings in the given string. public static boolean istPalindrom(char[] word){ int i1 =…