Monday, September 29, 2008

System.Web.UI.Statebag class

Manages the view state of ASP.NET server controls, including pages. This class cannot be inherited.

http://authors.aspalliance.com/aspxtreme/sys/web/ui/StateBagClass.aspx

Monday, September 22, 2008

Client Callback

This feature allows you to programmatically call server-side methods through client-side JavaScript code without the need for posting back the page.

Types of Assembly

Private Assembly: This type of assembly is used by a single application. It is stored in the application's directory or the applications sub-directory. There is no version
constraint in a private assembly.

Shared or Public Assemlby: A shared assembly has version constraint. It is stored in the Global Assembly Cache (GAC). GAC is a repository of shared assemblies maintained by the .NET runtime. It is located at C:\Windows\Assembly OR C:\Winnt\Assembly. The shared assemblies may be used by many applications. To make an assembly a shared assembly, it has to be strongly named. In order to share an assembly with many applications, it must have a strong name.

Tuesday, September 16, 2008

Connection Pooling

Connection pooling being normally used in web-based and enterprise applications is usually handled by an application server. Any dynamic web page can be coded to open a connection and close it normally but behind the scenes when a new connection is requested, one is returned from the connection pool maintained by the application server. Similarly, when a connection is closed it is actually returned to the connection pool. Connection pooling was first introduced in Microsoft Internet Information Server 3,[citation needed] the idea was soon after incorporated into other software vendors web server products.

http://www.15seconds.com/issue/040830.htm
http://www.ondotnet.com/pub/a/dotnet/2004/02/09/connpool.html

Monday, September 15, 2008

GC.SuppressFinalize()

Requests that the system not call the finalizer for the specified object.

Web Services ( WSDL, SOAP & UDDI)

http://www.w3schools.com/webservices/default.asp

Wednesday, September 10, 2008

Finalize vs Dispose

Finalize :
1.Finalize() is called by the runtime
2.Is a destructor, called by Garbage Collector when the object goes out of scope.
3.Implement it when you have unmanaged resources in your code, and want to make sure that these resources are freed when the Garbage collection happens.

Dispose :
1.Dispose() is called by the user
2.Same purpose as finalize, to free unmanaged resources. However, implement this when you are writing a custom class, that will be used by other users.
3.Overriding Dispose() provides a way for the user code to free the unmanaged objects in your custom class.

http://msdn.microsoft.com/en-us/library/fs2xkftw.aspx
http://www.devx.com/dotnet/Article/33167/0/page/1

Saturday, September 6, 2008

Class Modifiers

abstract: An instance of the class cannot be created.Usually this means the class is intended to serve as a base class.

sealed: The class cannot serve as a base class for another class (it can't be derived from). A class cannot be both abstract and sealed.

internal: The class is only accessible from other classes in the same assembly. This is the default access for non-nested types. If no modifier is specified, the class has internal access.

new: Used only with nested classes. "New" indicates that the class hides an inherited member of the same name.

private: A nested class that can only be accessed inside the class in which it is defined.

public: Instances of this class are available to any class that wants to access it.

Serialisation vs De-Serialisation

Serialization is the process of saving the state of an object in a persistent storage media by converting the object to a linear stream of bytes.

The reverse process of serialization is known as de-serialization and enables us to re-construct the object from the previously serialized instance of the same in the persistent or non-persistent storage media.

Globalisation vs Localisation

Globalization is the process of designing and developing applications that function for multiple cultures.

Localization is the process of customizing your application for a given culture and locale.

Round trip vs Postback

Round trip means the form goes to the server and take the
response from the server and it may redirect to the other
form or same form according to the request
where as Postback means the form goes to the server and
loads the same page

Thursday, September 4, 2008

Web Farm Vs Web Garden

A Web farm allows you to expand a Web Site across multiple servers.

A Web garden allows you to expand a Web Site across multiple CPUs within a single server.

Assembly - Metadata - Manifest

An assembly is a file that is automatically generated by the compiler upon successful compilation of every .NET application

Metadata is the complete way of describing what is in a .NET assembly. Digging into the metadata yields the types available in that assembly, viz. classes, interfaces, enums, structs, etc., and their containing namespaces, the name of each type, its visibility/scope, its base class, the interfaces it implemented, its methods and their scope, and each method’s parameters, type’s properties, and so on

Metadata describes the contents in an assembly, whereas the manifest describes the assembly itself. The manifest contains the assembly name, version number, locale and an optional strong name that uniquely identifying the assembly. This manifest information is used by the CLR.

CLS and CTS

The Common Type System (CTS) defines how types are declared, used, and managed in the runtime, and is also an important part of the runtime's support for cross-language integration.

CTS Provides the data types, values, object types. This helps developers to develop applications in different languages, where .NET languages share CTS means all the types used in applications share the same types defined under CLI.

Common Language Specification (CLS) defines a subset of Common Type System, which all language compilers targeting CLR must adhere to. CLS is a subset of CTS.


http://aspalliance.com/1530_Understanding_Common_Type_System_in_NET.all

Triggers & its types

A trigger is a database object that is bind to a table. In many aspects it is similar to a stored procedure and are often referred to as a "special kind of stored procedure".

After Trigger - For insert, For update, For delete
Multiple After Triggers
Instead Of Triggers
Mixing Triggers Type