Displaying JSON in a gridview format C# – Asp.net
My application is receive a json string. I want to be able to display this string in a nice formatted way. Truly I do not even know what question to ask and that is the source of my problem. Here…
My application is receive a json string. I want to be able to display this string in a nice formatted way. Truly I do not even know what question to ask and that is the source of my problem. Here…
I have a below linq query and getting data like below example want to remove duplications List<EmployeeSalary> lstEmployeeSalary = new EmployeeSalaryFactory().GetRelatedObjects(inValue, ddlPayDate, payRollType, payrollSearch) .Select(m => (EmployeeSalary)m) .ToList(); For ex.: Id Name EmpCode Salary DateOfSalary ------------------------------------------------------------- 1 Item1 IT00001 $100…
I have migrated a couple of ASP.Net Core 2.2 projects to .Net 5, the last issue I have is that I get a System.NotSupported exception when trying to load bitmaps from the project resources. RtfUtility.AppendLogo(result, Properties.Resources.Logo); System.NotSupportedException HResult=0x80131515 Message=BinaryFormatter serialization…
I have the following code in my so called repository layer. public class EmployeeDetailsRepository : IEmployeeDetailsRepository { private readonly IDataAccess _dataAccess; public ILogger Logger { get; set; } public EmployeeDetailsRepository(IDataAccess dataAccess) { Logger = LoggerUtil.GetLogger("Data access repository"); } public EmployeeDetails…
I'm not able to get the value from OneDay.price_change. The HTTP response is OK and I'm getting the following: HTTP Response "[{"id":"BTC","currency":"BTC","symbol":"BTC","name":"Bitcoin","logo_url":"https://s3.us-east-2.amazonaws.com/nomics-api/static/images/currencies/btc.svg","status":"active","price":"60947.08258854","price_date":"2021-10-31T00:00:00Z","price_timestamp":"2021-10-31T18:51:00Z","circulating_supply":"18860037","max_supply":"21000000","market_cap":"1149464232662","market_cap_dominance":"0.4078","num_exchanges":"397","num_pairs":"67587","num_pairs_unmapped":"5196","first_candle":"2011-08-18T00:00:00Z","first_trade":"2011-08-18T00:00:00Z","first_order_book":"2017-01-06T00:00:00Z","rank":"1","high":"66082.82561618","high_timestamp":"2021-10-20T00:00:00Z","1h":{"volume":"1248590564.91","price_change":"-85.32656234","price_change_pct":"-0.0014","volume_change":"-218879322.04","volume_change_pct":"-0.1492","market_cap_change":"-1607003923.65","market_cap_change_pct":"-0.0014"},"1d":{"volume":"39937857069.60","price_change":"-845.68642611","price_change_pct":"-0.0137","volume_change":"1918883279.43","volume_change_pct":"0.0505","market_cap_change":"-15892518975.54","market_cap_change_pct":"-0.0136"}}]n" However, for some reason, I'm not able to take the 1d price change. I'm not sure what could…
I currently retrieve data from a database and store it in a data list. One of those items is a bytes value that is used to display an image. The code works, however, when there is no image available, I…
Currently I am learning asp.net core , and I found a book about .net core 3.0 , Is this still true or there are too many differences between .net core 3.0 and .net core 5 ?
I have a container deploying a WEB API in ASP.NET Core trying to connect to the SQL Server database. I am running Windows 10 with Docker Desktop. I can successfully connect to the Docker container with SQL Server from SQL…
I am new to ASP.NET Core development. I am looking for something like a built-in way to use loop iteration numbers inside the view of ASP.NET Core. I did some research and found solutions like creating int variable outside the…
I am trying to understand how models work in .net core and I run into the following problem: I have a model called blog: public class Blog { [Key] public int Id { get; set; } [Required(ErrorMessage = "Title is…