Pages

Tuesday, April 19, 2011

Assign session value in javascript

Here is the code..


 var myvar"Hey Buddy";
'<%Session["temp"] = "' + myvar +'"; %>' ;
alert('<%=Session["temp"] %>');

Sunday, April 3, 2011

WCF Service is composed of three components:


Service class: It implements the service needed.
Host environment: is an environment that hosts the developed service.
Endpoints: are the connection points for the clients to connect to the service. Clients find the end points through three components like service contract, binding, and address.

Explain how garbage collection deals with circular references.


Circular referencing issue happens when two objects refer to each other. Usually in a parent-child relationship, situations occur where a child interacts with the parent object and has a reference held to the parent object.

The .NET, the objects that are reachable from the root can be cleaned up easily. Thus, this can even be applied to circular reference and have the objects holding the resources cleaned up