SlideShare a Scribd company logo
1 of 3
Download to read offline
1.Difference between trace and debug in .NET

      S.No   Trace                                Debug

      1      This class works only when your This class works only when your
             application build defines the application build defines the symbol
             symbol TRACE.                   DEBUG.

      2      For tracing, you have to use For tracing, you have to                use
             Trace.WriteLine statements.  Debug.WriteLine statements.

      3      Trace class is generally used to You generally use debug classes at the
             trace the execution during time of development of application.
             deployment of the application.

      4      Trace class works in both debug Debug class works only in debug
             mode as well as release mode.   mode.

      5      Performance analysis can be done Performance analysis cannot be done
             using Trace class.               using Debug class.

      6      Trace runs in a thread that is Debug runs in the same thread in
             different from the Main Thread. which your code executes.

      7      Trace is used during Testing Phase Debug is used during Debugging
             and Optimization Phase of Phase
             different releases.

2.Difference between ASP and ASPX

      S.No   ASP                                  ASPX

      1      The .asp is the file extension of The .aspx is the file extension of
             the classic ASP page.             ASP.NET page.

      2      ASP stands for Active Server ASPX is the acronym of Active Server
             Pages.                       Pages Extended.

      3      The .asp file runs under the The .aspx file runs in a separate
             process space of inetinfo.exe, worker     process  called   as
             which is an IIS process space. aspnet_wp.exe.

      4      The .asp file can execute only in    The .aspx file can run on any
             platforms       of      Microsoft    platforms, be it Microsoft or not.
             technology. It cannot run in non-    Hence .aspx file can be executed in
             Microsoft platforms like Apache      Apache Web Server as well.
             Web Server.

      5      The .asp file can be coded in only   The .aspx file can be coded using
             two languages namely VBScript        any .NET language including VB.NET,
             and Javascript. Both these           C#. Both VB.NET and C# are Server
             languages      are   client   side   Side Languages.
             languages.
6       In .asp file, the executable code    In .aspx file, the executable code
              can be included outside a function   cannot be included outside a function
              scope where in the function is       scope where in the function is located
              located inside the script block      inside the script block marked as
              marked as runat=server.              runat=server.

      7       In .asp file, a function can be In .aspx file, a function cannot be
              defined inside server side script defined inside server side script tags.
              tags.

      8       In .asp file, all the directives will In .aspx, the language directive must
              be placed in the page’s first line be enclosed within page directive as <
              using <%@Page Language= %@Page Language= “VB” %>
              “Jscript” %> tag.

3.Difference between thread and process


      S.No    Thread                               Process

      1       Threads share the address space of Processes have their own address.
              the process that created it.

      2       Threads have direct access to the Processes have their own copy of the
              data segment of its process       data segment of the parent process.

      3       Threads can directly communicate Processes must use interprocess
              with other threads of its process communication to communicate with
                                                sibling processes.

      4       Threads have almost no overhead      Processes have considerable overhead

      5       New threads are easily created       New processes require duplication of
                                                   the parent process.

      6       Threads can exercise considerable Processes can only exercise control
              control over threads of the same over
              process                           child processes

      7       Changes to the main thread Changes to the parent process does not
              (cancellation, priority change, affect child processes.
              etc.) may affect the behavior of
              the other threads of the process


Another good reference:
http://www.differencebetween.net/miscellaneous/difference-between-thread-and-process/
4.Difference between ASPX and ASCX

      S.No   ASPX                                 ASCX

      1      ASP.NET       Page     uses    the   User Control uses the extension .ascx
             extension .aspx                      For eg: WebUserControl.ascx.
             For eg: Default.aspx

      2      ASP.NET Page begin with a Page       User Control begin with a Control
             Directive.                           Directive.
             For eg:                              For eg:
                    <%@ Page                               <%@ Control
             Language="C#"                        Language="C#"
                    AutoEventWireup="true"                  AutoEventWireup="true"

             CodeFile="Default.aspx.cs"           CodeFile="WebUserControl.ascx.cs"
                   Inherits="_Default" %>                  Inherits="WebUserControl"
                                                  %>


      3      Usercontrol code can be used in We can not            use   webforms     in
             webforms                        usercontrol.


      4      ASP.NET Page can be viewed User Control cannot be viewed directly
             directly in the Browser.   in the browser. User Controls are
                                        added to WebPages and we view them
                                        by requesting a web page in our
                                        browser

      5      ASP.NET page has HTML, Body User Control does not have a HTML,
             or Form element.            Body or Form element.

And, further updates on difference between questions and answers, please visit my blog @
http://onlydifferencefaqs.blogspot.in/

More Related Content

More from Umar Ali

More from Umar Ali (20)

Difference between wcf and asp.net web api
Difference between wcf and asp.net web apiDifference between wcf and asp.net web api
Difference between wcf and asp.net web api
 
Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()Difference between ActionResult() and ViewResult()
Difference between ActionResult() and ViewResult()
 
Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4Difference between asp.net mvc 3 and asp.net mvc 4
Difference between asp.net mvc 3 and asp.net mvc 4
 
Difference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvcDifference between asp.net web api and asp.net mvc
Difference between asp.net web api and asp.net mvc
 
Difference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvcDifference between asp.net web forms and asp.net mvc
Difference between asp.net web forms and asp.net mvc
 
ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1ASP.NET MVC difference between questions list 1
ASP.NET MVC difference between questions list 1
 
Link checkers 1
Link checkers 1Link checkers 1
Link checkers 1
 
Affiliate Networks Sites-1
Affiliate Networks Sites-1Affiliate Networks Sites-1
Affiliate Networks Sites-1
 
Technical Video Training Sites- 1
Technical Video Training Sites- 1Technical Video Training Sites- 1
Technical Video Training Sites- 1
 
US News Sites- 1
US News Sites- 1 US News Sites- 1
US News Sites- 1
 
How to create user friendly file hosting link sites
How to create user friendly file hosting link sitesHow to create user friendly file hosting link sites
How to create user friendly file hosting link sites
 
Weak hadiths in tamil
Weak hadiths in tamilWeak hadiths in tamil
Weak hadiths in tamil
 
Bulughul Maram in tamil
Bulughul Maram in tamilBulughul Maram in tamil
Bulughul Maram in tamil
 
Asp.net website usage and job trends
Asp.net website usage and job trendsAsp.net website usage and job trends
Asp.net website usage and job trends
 
Indian news sites- 1
Indian news sites- 1 Indian news sites- 1
Indian news sites- 1
 
Photo sharing sites- 1
Photo sharing sites- 1 Photo sharing sites- 1
Photo sharing sites- 1
 
File hosting search engines
File hosting search enginesFile hosting search engines
File hosting search engines
 
Ajax difference faqs compiled- 1
Ajax difference  faqs compiled- 1Ajax difference  faqs compiled- 1
Ajax difference faqs compiled- 1
 
ADO.NET difference faqs compiled- 1
ADO.NET difference  faqs compiled- 1ADO.NET difference  faqs compiled- 1
ADO.NET difference faqs compiled- 1
 
Dotnet differences compiled -1
Dotnet differences compiled -1Dotnet differences compiled -1
Dotnet differences compiled -1
 

Recently uploaded

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

Asp.net difference faqs- 7

  • 1. 1.Difference between trace and debug in .NET S.No Trace Debug 1 This class works only when your This class works only when your application build defines the application build defines the symbol symbol TRACE. DEBUG. 2 For tracing, you have to use For tracing, you have to use Trace.WriteLine statements. Debug.WriteLine statements. 3 Trace class is generally used to You generally use debug classes at the trace the execution during time of development of application. deployment of the application. 4 Trace class works in both debug Debug class works only in debug mode as well as release mode. mode. 5 Performance analysis can be done Performance analysis cannot be done using Trace class. using Debug class. 6 Trace runs in a thread that is Debug runs in the same thread in different from the Main Thread. which your code executes. 7 Trace is used during Testing Phase Debug is used during Debugging and Optimization Phase of Phase different releases. 2.Difference between ASP and ASPX S.No ASP ASPX 1 The .asp is the file extension of The .aspx is the file extension of the classic ASP page. ASP.NET page. 2 ASP stands for Active Server ASPX is the acronym of Active Server Pages. Pages Extended. 3 The .asp file runs under the The .aspx file runs in a separate process space of inetinfo.exe, worker process called as which is an IIS process space. aspnet_wp.exe. 4 The .asp file can execute only in The .aspx file can run on any platforms of Microsoft platforms, be it Microsoft or not. technology. It cannot run in non- Hence .aspx file can be executed in Microsoft platforms like Apache Apache Web Server as well. Web Server. 5 The .asp file can be coded in only The .aspx file can be coded using two languages namely VBScript any .NET language including VB.NET, and Javascript. Both these C#. Both VB.NET and C# are Server languages are client side Side Languages. languages.
  • 2. 6 In .asp file, the executable code In .aspx file, the executable code can be included outside a function cannot be included outside a function scope where in the function is scope where in the function is located located inside the script block inside the script block marked as marked as runat=server. runat=server. 7 In .asp file, a function can be In .aspx file, a function cannot be defined inside server side script defined inside server side script tags. tags. 8 In .asp file, all the directives will In .aspx, the language directive must be placed in the page’s first line be enclosed within page directive as < using <%@Page Language= %@Page Language= “VB” %> “Jscript” %> tag. 3.Difference between thread and process S.No Thread Process 1 Threads share the address space of Processes have their own address. the process that created it. 2 Threads have direct access to the Processes have their own copy of the data segment of its process data segment of the parent process. 3 Threads can directly communicate Processes must use interprocess with other threads of its process communication to communicate with sibling processes. 4 Threads have almost no overhead Processes have considerable overhead 5 New threads are easily created New processes require duplication of the parent process. 6 Threads can exercise considerable Processes can only exercise control control over threads of the same over process child processes 7 Changes to the main thread Changes to the parent process does not (cancellation, priority change, affect child processes. etc.) may affect the behavior of the other threads of the process Another good reference: http://www.differencebetween.net/miscellaneous/difference-between-thread-and-process/
  • 3. 4.Difference between ASPX and ASCX S.No ASPX ASCX 1 ASP.NET Page uses the User Control uses the extension .ascx extension .aspx For eg: WebUserControl.ascx. For eg: Default.aspx 2 ASP.NET Page begin with a Page User Control begin with a Control Directive. Directive. For eg: For eg: <%@ Page <%@ Control Language="C#" Language="C#" AutoEventWireup="true" AutoEventWireup="true" CodeFile="Default.aspx.cs" CodeFile="WebUserControl.ascx.cs" Inherits="_Default" %> Inherits="WebUserControl" %> 3 Usercontrol code can be used in We can not use webforms in webforms usercontrol. 4 ASP.NET Page can be viewed User Control cannot be viewed directly directly in the Browser. in the browser. User Controls are added to WebPages and we view them by requesting a web page in our browser 5 ASP.NET page has HTML, Body User Control does not have a HTML, or Form element. Body or Form element. And, further updates on difference between questions and answers, please visit my blog @ http://onlydifferencefaqs.blogspot.in/