@manhng

Welcome to my blog!

Debug & Log

June 21, 2019 15:23

Debug & Log (edit)

SQL Prompt

OZCODE

CODEMAID

DebugView

https://tedgustaf.com/blog/2011/use-debugview-to-view-debug-output-from-asp-net-web-application/

Published: April 23, 2019

https://docs.microsoft.com/en-us/sysinternals/downloads/debugview

DebugView screenshot

Debug

October 6, 2017 16:51

Save JSON when HTTP POST

var uploadsProjectsFolder = Path.Combine(_hostingEnvironment.WebRootPath, @"Uploads\Projects\");

if (!Directory.Exists(uploadsProjectsFolder)) Directory.CreateDirectory(uploadsProjectsFolder);

System.IO.File.WriteAllText($"{Path.Combine(uploadsProjectsFolder, projectId.ToSafeString())}.txt", Newtonsoft.Json.JsonConvert.SerializeObject(model));

Categories

Recent posts