Archive for the 'ASP.NET' Category
Instance Management using WCF
Instance Management using WCF:
Below given example make clear the instancing behaviour setting, which controls how instances of a service class are created in response to client requests.
Types of instancing modes:
PerCall: A new instance is created for each client request.
PerSession: A new instance is created for each new client session, and it will be available throughout the session
Single: Only one instance handles for all client requests throughout the application
No comments
Release Instance using WCF
Release Instance using WCF
Below given example make clear the release instance setting, which controls how service class instances will release once its operation completes with respect to the client requests.
Types of operation modes:
None: Recycles the object according to the value.
BeforeCall: Recycles the instance before to calling the operation.
AfterCall: Recycles the instance successive to the completion of the operation.
BeforeAndAfterCall: Recycles the instance before to calling the operation and successive to the completion of the operation.
1 comment
ASP.NET AdRotator Control Using LINQ
In Asp.Net the AdRotator control is used to display a sequence of images . We can display the images by using XML file or by using Database.
First we will have a look at a sample XML advertisement file that is used by the adrotator control in ASP.Net.
This AdRotator control uses an XML file to store the advertisement information. The important thing in XML file is that it must begin with <Advertisements> and ends with </Advertisements>.The predefined elements inside the tag are listed below:
<ImageUrl>This is used for the path of the image file
<NavigateUrl>This is used if the user clicks the ad it navigates to the respective page.
<AlternateText>This can be used as an alternate text for the image
<Impressions>This can be used to display the ads in percent of the hits
<Keyword>This is optional and used for to categorise.
No comments
