<< < 18 19 20 21 22 23 24 25 26 27 28 > >>   Sort: Rank

What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"?
What’s the difference between Codebehind="MyCode.aspx.cs" andSrc="MyCode.aspx.cs"? CodeBehind is relevant to Visual Studio.NET only.
2014-03-06, 1573👍, 0💬

Where do you store the information about the user’s locale?
Where do you store the information about the user’s locale? System.Web.UI.Page.Culture
2014-03-05, 1517👍, 0💬

Where does the Web page belong in the .NET Framework class hierarchy?
Where does the Web page belong in the .NET Framework class hierarchy? System.Web.UI.Page
2014-03-05, 1628👍, 0💬

What methods are fired during the page load?
What methods are fired during the page load? Init() - when the pageis instantiated, Load() - when the page is loaded into server memory,PreRender() - the brief moment before the page is displayed to the user asHTML, Unload() - when page finishes loading.
2014-03-04, 1550👍, 0💬

What’s the difference between Response.Write() andResponse.Output.Write()?
What’s the difference between Response.Write() andResponse.Output.Write()? The latter one allows you to write formattedoutput.
2014-03-04, 1581👍, 0💬

Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process.
Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe in the page loading process. inetinfo.exe is theMicrosoft IIS server running, handling ASP.NET requests among other things.When an ASP.NET request is received (usually a file with .aspx extension),the ISAPI filter aspnet_isapi.dll ...
2014-03-03, 1617👍, 0💬

NET is Compile Time OR RunTime Environment?
NET is Compile Time OR RunTime Environment? .Net’s framework has CLS,CTS and CLR.CTS checks declartion of types at the time when u write code and CLS defines some rules and restrictions.and CLR comile everything at runtime with following benefits: Vastly simplified development Seamless integratio...
2014-03-03, 1562👍, 0💬

What’s wrong with a line like this? DateTime.Parse(myString)
What’s wrong with a line like this? DateTime.Parse(myString) the result returned by this function is not assigned to anything, should be something like varx = DateTime.Parse(myString)
2014-02-28, 1784👍, 0💬

How does the lifecycle of Windows services differ from Standard EXE?
How does the lifecycle of Windows services differ from Standard EXE? Windows services lifecycle is managed by “Service Control Manager” which is responsible for starting and stopping the service and the applications do not have a user interface or produce any visual output, but “Standard e...
2014-02-28, 1522👍, 0💬

Is string a value type or a reference type?
Is string a value type or a reference type? Answer1: String is Reference Type. Value type - bool, byte, chat, decimal, double, enum , float, int, long, sbyte, short,strut, uint, ulong, ushort Value types are stored in the Stack Reference type - class, delegate, interface, object, string Reference ty...
2014-02-27, 1666👍, 0💬

What is boxing?
What is boxing? Boxing is an implicit conversion of a value type to the type object int i = 123; // A value type Object box = i // Boxing Unboxing is an explicit conversion from the type object to a value type int i = 123; // A value type object box = i; // Boxing int j = (int)box; // Unboxing
2014-02-27, 1612👍, 0💬

How would one do a deep copy in .NET?
How would one do a deep copy in .NET? Answer1: System.Array.CopyTo() - Deep copies an Array Answer2: How would one do a deep copy in .NET? The First Approach. 1.Create a new instance. 2.Copy the properties from source instance to newly created instance. [Use reflection if you want to write a common ...
2014-02-26, 1942👍, 0💬

What is the difference between a.Equals(b) and a == b?
What is the difference between a.Equals(b) and a == b? Answer1: a=b is used for assigning the values (rather then comparison) and a==b is for comparison. Answer2: a == b is used to compare the references of two objects a.Equals(b) is used to compare two objects Answer3: A equals b -&gt; copies c...
2014-02-26, 1778👍, 0💬

Contrast the use of an abstract base class against an interface?
Contrast the use of an abstract base class against an interface? Answer1: In the interface all methods must be abstract, in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes Answer2: Wether to Choose VB.NET/C#. B...
2014-02-25, 1646👍, 0💬

What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not?
What is the difference between a Debug and Release build? Is there a significant speed difference? Why or why not? Debug build contain debug symbols and can be debugged while release build doesn’t contain debug symbols, doesn’t have [Contional(”DEBUG”)] methods calls compiled, can’t...
2014-02-25, 1650👍, 0💬

What is the difference between Debug.Write and Trace.Write? When should each be used?
What is the difference between Debug.Write and Trace.Write? When should each be used? Answer1: The Debug.Write call won’t be compiled when the DEBUG symbol is not defined (when doing a release build). Trace.Write calls will be compiled. Debug.Write is for information you want only in debug builds...
2014-02-24, 1832👍, 0💬

Why is catch(Exception) almost always a bad idea?
Why is catch(Exception) almost always a bad idea? Well, if at that point you know that an error has occurred, then why not write the proper code to handle that error instead of passing a new Exception object to the catch block? Throwing your own exceptions signifies some design flaws in the project.
2014-02-24, 2023👍, 0💬

How does the XmlSerializer work? What ACL permissions does a process using it require?
How does the XmlSerializer work? What ACL permissions does a process using it require? XmlSerializer requires write permission to the system’s TEMP directory.
2014-02-21, 2403👍, 0💬

Contrast OOP and SOA. What are tenets of each
Contrast OOP and SOA. What are tenets of each Service Oriented Architecture. In SOA you create an abstract layer that your applications use to access various “services” and can aggregate the services. These services could be databases, web services, message queues or other sources. The Service...
2014-02-21, 1925👍, 0💬

Binary value in Switch case
Is it possible to pass a binary value to 'case' of 'switch' statement?The control value which we are using to test is also binary. switch(binary value) { case 0000: System.out.println(" "); break; case 0001: System.out.println(" "); break; }
2014-02-20, 2186👍, 0💬

What does this do? gacutil /l | find /i “about”
What does this do? gacutil /l | find /i “about” Answer1: This command is used to install strong typed assembly in GAC Answer2: gacutil.exe is used to install strong typed assembly in GAC. gacutil.exe /l is used to lists the contents of the global assembly cache. |(pipe) symbol is used to filte...
2014-02-19, 2175👍, 0💬

What is FullTrust? Do GAC’ed assemblies have FullTrust?
What is FullTrust? Do GAC’ed assemblies have FullTrust? Your code is allowed to do anything in the framework, meaning that all (.Net) permissions are granted. The GAC has FullTrust because it’s on the local HD, and that has FullTrust by default, you can change that using caspol
2014-02-19, 3203👍, 0💬

What is cyclomatic complexity and why is it important?
What is cyclomatic complexity and why is it important? Cyclomatic complexity is a computer science metric (measurement) developed by Thomas McCabe used to generally measure the complexity of a program. It directly measures the number of linearly independent paths through a program’s source code. ...
2014-02-18, 1960👍, 0💬

What are PDBs? Where must they be located for debugging to work?
What are PDBs? Where must they be located for debugging to work? Answer1: To debug precompiled components such as business objects and code-behind modules, you need to generate debug symbols. To do this, compile the components with the debug flags by using either Visual Studio .NET or a command line...
2014-02-18, 2175👍, 0💬

<< < 18 19 20 21 22 23 24 25 26 27 28 > >>   Sort: Rank