What is the difference between Debug.Write and Trace.Write?
When should each be used?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of execute non query in asp.net?

485


How to change Master page in ASP.Net using code?

598


What is new asp.net core?

575


What is autopost?

529


Explain the difference between page.registerclientscriptblock and page.registerstartupscript?

577






What is the main differences between asp and asp.net?

527


Explain the advantages of passport authentication.

513


What is anonymous authentication?

589


What is IPostBack? How to use it?

602


How does session authentication work?

513


Explain what is viewstate?

547


What are the new data controls in asp.net 2.0?

526


For which does this Codebehind="MyCode.aspx.cs" is relevent to ?

583


Give an example of cookie abuse.

601


What is http response header?

567