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 |
how to handle sql exceptions?
What is a session in programming?
How do you insert multiple rows from a grid view to database table under a single transaction?
in which protocol ASP.NET WEB API Work?
Difference between connected architecture and Dissconnected architecture?
Where do you store the information about the user?s locale?
which one is faster execute reader, scalar, execute non query ?
What is difference between Lambda Expression and LINQ in ASP.NET?
how to increase performance of web site? if there is a page with high load. the content is high then what should we do to increase performance?
3 Answers Emphasis, Mphasis, TCS,
Using shadow variable is good or bad for application?
What is the recommended approach for asp.net mvc to globally intercept exceptions? What other functionality can be implemented with the approach? : Asp.Net MVC
How we can bind textbox,listbox and datagrid to sql server database in asp.net using visualstudio.net language (vb.net)?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)