What is the difference between Debug.Write and Trace.Write?
When should each be used?
Answers were Sorted based on User's Feedback
Answer / prasad
Debug.write would not be compiled when the debug symbol is
defined
Trace.write would be compiled when the debug symbol is
defined
Is This Answer Correct ? | 7 Yes | 1 No |
Answer / champion
Debug.Write & Trace.write - both works in Debug mode, while in Release Mode,Trace.write only will work .Try changing the Active Config property of Solution in Property page nd find the difference. Debug.write is used while debuging a project and Trace.write is used in Released verion of Applications.
Is This Answer Correct ? | 5 Yes | 1 No |
What are main return types supported in Web API?
How can we create pie chart in asp.net?
what is the difference between this.controls and page.form1.controls and me.controls?
How do you specify whether your data should be passed as Query string and Forms (Mainly about POST and GET)
What will happen if the server confugration file and the application confugration file have different values for sassion state ASP.NET?
1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?
What does AspCompat="true" mean and when should I use it?
What is the difference between a Thread and Process?
What are the built-in objects in asp.net?
What is state management in asp.net with example?
what is COM Object in Dot net?
What is caching? What are different ways of caching in asp.net?