Tuesday, December 28, 2021

How show console write line in asp.net in visual studio

1. We use Debug.WriteLine("sss") instead of Console.WtriteLite("aaa") 

    and it will show in Immediate Window

2. For active Immediate Window 

   Tools > Options > Debugging > General > Tick (Check) in  

    [] Redirect  All Output Window text to the Immediate Window

3. Debug uses 

using System.Diagnostics;

No comments:

Post a Comment

Raw Insert query in EF8 or Entity Framwork 8

          public async Task<object> InsertRack(Rack RackInsert)         {             try             {                 sql = " i...