skip to Main Content

C# : How to Deserialize json data – Asp.net

How to deserialized this type of json file usig C# My Json [{"data":{"CRC":"a459","PC":"3000","TID":"e2806810200000040a0652c8","antenna":3,"channel":922.75,"eventNum":396,"format":"epc","idHex":"e28068100000003c0a0652c8","peakRssi":-36,"phase":0.0,"reads":36},"timestamp":"2022-09-19T09:03:26.445+0700","type":"SIMPLE"}] My Model public class TagRead{ public string TID { get; set; } } public class Hdr{ public List<TagRead> data { get; set; } } My Controller public…

VIEW QUESTION

I'm getting a CS0234 "The type or namespace name "Services" does not exist in the namespace" even though I can see it in file structure – Asp.net

I was following a tutorial from Microsoft found at https://learn.microsoft.com/en-us/training/modules/create-razor-pages-aspnet-core/ At one point it instructs to add a folder under the root project called "Services". Within that folder is a file which needs to be accessed. Upon creating the project,…

VIEW QUESTION

Making post request after authentication expired – Jquery

I'm writing a web application using C#, ASP.NET, jQuery and using forms authentication: <authentication mode="Forms"> <forms loginUrl="Account/Login.aspx" defaultUrl="Default.aspx" name=".ASPXFORMSAUTH" timeout="30" /> </authentication> <authorization> <deny users="?" /> </authorization> The application is a command & control that designed to be open for…

VIEW QUESTION
Back To Top
Search