What are the collections of Session Object? Contents collection contains all the variables established for a session without using the tag. Static collection contains all the objects created What is the difference between ASP and HTML? Or Why ASP is better than HTML? - ASP executes code on the server side whereas the browser interprets HTML. - ASP can use any scripting languages - Gets feedback from the user and return information to the user - Create pages that will be customized to display only things that will be of interest to a particular user - Can edit contents of a web page by updating a text file or a database rather than the HTML code itself What are the event handlers of Application Object? Application_OnStart- This event will be fired when the first visitor hits the page. Application_OnEnd- This event runs when the server is stopped. Name some of the ASP components? Ad Rotator component- a way to manage advertisements on the web site. Content Linker component - a techn...
What's C# ? C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection. More at http://msdn.microsoft.com/vstudio/nextgen/technology/csharpintro.asp, http://msdn.microsoft.com/library/default.asp?URL=/library/dotnet/csspec/vclrfcsharpspec_Start.htm and http://msdn.microsoft.com/vstudio/nextgen/technology/csharpdownload.asp Is it possible to inline assembly or IL in C# code? - No. Is it possible to have different access modifiers on the get/set methods of a property? - No. The access modifier on a property applies to both its get and set accessors. What you need to do if you want them to be different is make the property read-only (by only providing a get accessor) and create a private/internal set method that is separate from the property. Is it possible to have a static indexer in C#? allowed in C#. - No. Static indexers are not If I return out of a try/fi...
What namespaces are necessary to create a localized application? System.Globalization and System.Resources. What is the smallest unit of execution in .NET? an Assembly. When should you call the garbage collector in .NET? As a good rule, you should not call the garbage collector. However, you could call the garbage collector when you are done using a large object (or set of objects) to force the garbage collector to dispose of those very large objects from memory. However, this is usually not a good practice. How do you convert a value-type to a reference-type? Use Boxing. What happens in memory when you Box and Unbox a value-type? Boxing converts a value-type to a reference-type, thus storing the object on the heap. Unboxing converts a reference-type to a value-type, thus storing the value on the stack.Difference between directcast and ctype. Answer1 DirectCast requires the run-time type of an object variable to bethe same as the specified type.The run-time performance ofDirectCas...