c#

How to use the AdRotator control in ASP.NET page in C#

By using the AdRotator control your ASP.NET web page randomly selects banner graphics from a list that is specified in an external XML schedule file. Before creating the control, you should define the XML schedule file, as shown in the next example:

 

<Advertisements>

<Ad>

<ImageUrl>ocom-larry-mark-cloud-banner-1641735.jpg

</ImageUrl>

<NavigateUrl> https://www.oracle.com/index.html </NavigateUrl>

<AlternateText> Oracle engineers …

Learn more

How to use the BulletedList control in ASP.NET page

ASP.NET BulletedList control is the server-side equivalent of the <ul> (unsorted list) or <ol> (ordered list) elements. As with all list controls, you have to use the Items property to set the collection of items that should be displayed. The next table lists additional properties you can use to configure how the items are displayed:

 

Property

Learn more

How to use selectable list controls in ASP.NET page in C#

ASP.NET selectable list controls include the DropDownList, ListBox, CheckBoxList and RadioButtonList controls. They allow users to select one or more of the contained items. When the page is posted back, you can check which items were chosen. By default, the RadioButtonList and CheckBoxList render multiple option buttons or check boxes.

The next table lists additional RadioButtonList and CheckBoxList …

Learn more

How to manage the ASP.NET web service transaction option in C#

Web service can initiate ADO.NET transactions. Web services can also participate in COM+ transactions. You can use COM+ transactions when you want to span multiple different data sources as a SQL Server database and an Oracle database. COM+ transactions commit or rollback automatically. However, they are always slower than using ADO.NET client-initiated/stored procedure transactions, because COM+ …

Learn more

How to manage the ASP.NET web service session state in C#

Web services do not support session state by default. In most cases they should be designed to be stateless if you want to achieve high scalability. Sometimes, you can decide to manage state if you want to retain user-specific information or to optimize performance in a specific scenario. In this case, you need to use the  …

Learn more

How to manage the ASP.NET web service data caching in C#

Data caching, supported by ASP.NET, allows you to store full-fledged object in the cache. You can use data caching through the Cache object which is available through the Context.Cache property in your web service code. With this object you can temporarily store information that is expensive to create that the web method can reuse it for …

Learn more

How to manage the ASP.NET web service output caching in C#

Web services which use output caching provide identical response, until the cache information expires, when requests are identical. In this case you can increase performance of your site, even if you store a response only for w few seconds.

You should use output caching only for straightforward information retrieval or data-processing functions. You should not …

Learn more

How to use timeout property of the proxy class in C#

In some cases for your web-page client, which consume a web service, you need to specify the maximum amount of time it has to wait. The article How to create an ASP.NET web-page client for a web service in C# does not cover this area. By default the timeout is 100,000 milliseconds (10 seconds).

You …

Learn more

How to document web service in ASP.NET in C#

ASP.NET automatically provides all the information the client needs about what web service’s methods are available and what parameters they require. This is provided by the XML-based standard named WSDL. Because WSDL, does not describe web service’s purpose or the meaning of the information supplied to and returned from each method you should prepare a separate …

Learn more