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/