1.Difference
between trace and debug in .NET
2.Difference
between ASP and ASPX
3.Difference
between thread and process
Another good reference:
-
S.No TraceDebug1This class works only when your application build defines the symbol TRACE.This class works only when your application build defines the symbol DEBUG.2 For tracing, you have to use Trace.WriteLine statements.For tracing, you have to use Debug.WriteLine statements.3 Trace class is generally used to trace the execution during deployment of the application.You generally use debug classes at the time of development of application.4 Trace class works in both debug mode as well as release mode.Debug class works only in debug mode.5 Performance analysis can be done using Trace class.Performance analysis cannot be done using Debug class.6 Trace runs in a thread that is different from the Main Thread.Debug runs in the same thread in which your code executes.7 Trace is used during Testing Phase and Optimization Phase of different releases.Debug is used during Debugging Phase
-
S.No ASPASPX1The .asp is the file extension of the classic ASP page.The .aspx is the file extension of ASP.NET page.2 ASP stands for Active Server Pages.ASPX is the acronym of Active Server Pages Extended.3 The .asp file runs under the process space of inetinfo.exe, which is an IIS process space.The .aspx file runs in a separate worker process called as aspnet_wp.exe.4 The .asp file can execute only in platforms of Microsoft technology. It cannot run in non-Microsoft platforms like Apache Web Server.The .aspx file can run on any platforms, be it Microsoft or not. Hence .aspx file can be executed in Apache Web Server as well.5 The .asp file can be coded in only two languages namely VBScript and Javascript. Both these languages are client side languages.The .aspx file can be coded using any .NET language including VB.NET, C#. Both VB.NET and C# are Server Side Languages.6 In .asp file, the executable code can be included outside a function scope where in the function is located inside the script block marked as runat=server.In .aspx file, the executable code cannot be included outside a function scope where in the function is located inside the script block marked as runat=server.7 In .asp file, a function can be defined inside server side script tags.In .aspx file, a function cannot be defined inside server side script tags.8 In .asp file, all the directives will be placed in the page’s first line using <%@Page Language= “Jscript” %> tag.In .aspx, the language directive must be enclosed within page directive as <%@Page Language= “VB” %>
-
S.No ThreadProcess1Threads share the address space of the process that created it.Processes have their own address.2 Threads have direct access to the data segment of its processProcesses have their own copy of the data segment of the parent process.3 Threads can directly communicate with other threads of its processProcesses must use interprocess communication to communicate with sibling processes.4 Threads have almost no overheadProcesses have considerable overhead5 New threads are easily createdNew processes require duplication of the parent process.6 Threads can exercise considerable control over threads of the same processProcesses can only exercise control overchild processes7 Changes to the main thread (cancellation, priority change, etc.) may affect the behavior of the other threads of the processChanges to the parent process does notaffect child processes.
Another good reference:
4.Difference
between ASPX and ASCX
-
S.No ASPXASCX1ASP.NET Page uses the extension .aspxFor eg: Default.aspxUser Control uses the extension .ascxFor eg: WebUserControl.ascx.2 ASP.NET Page begin with a Page Directive.For eg:<%@ Page Language="C#"AutoEventWireup="true"CodeFile="Default.aspx.cs"Inherits="_Default" %>User Control begin with a Control Directive.For eg:<%@ Control Language="C#"AutoEventWireup="true"CodeFile="WebUserControl.ascx.cs"Inherits="WebUserControl" %>3 Usercontrol code can be used in webformsWe can not use webforms in usercontrol.4 ASP.NET Page can be viewed directly in the Browser.User Control cannot be viewed directly in the browser. User Controls are added to WebPages and we view them by requesting a web page in our browser5 ASP.NET page has HTML, Body or Form element.User Control does not have a HTML, Body or Form element.
I am glad to be a visitor of this perfect web blog, thanks for this rare info regarding DOT NET Development Services.
ReplyDeleteHire C# Developers
Thanks Andrew.Your feedback will really help me to make this blog to look better.
ReplyDeleteReally a informative blog..thankx for sharing :)
ReplyDeleteThanks Nancy for your encouraging words.I am really happy to see visitors from different countries around the globe now a days.Thanks once again for your arrival.
ReplyDeleteReally help me
DeleteThank you for your positive feedback.
DeleteNice posts, its very useful for us, please continue. if required I am also can share this kind of questions and technical documents for self learning. my email address :elearn.ravi@gmail.com and u can follow my G+ Circle.
ReplyDeleteThanks,
Ravikumar.A