c#

How to build basic web service with ASP.NET in C#- step 3

You can use the article How to build basic web service with ASP.NET – step 2 to verify that the class developed by you is ready for the Web. You will learn from this article how to convert it to a web service. In this case the BookService class   described in the article How to build …

Learn more

How to build basic web service with ASP.NET in C# – step 1

Each web service begins as a stateless class with one or more methods that the remote clients call to invoke your code.

BookService is designed to allow remote clients to retrieve information about books provided by the store. The class provides GetBooks() method that returns a DataSet with the full set of books information. It …

Learn more

How to filter data based on relationships with the ADO.NET DataView in C#

The article How to filter data with the ADO.NET DataView in C# does not cover one of little-known features of the DataView to filter data rows based on relationships. For example, you need to display categories that contain more than five products, or you need to display customers who have bought more than 5 bank products. …

Learn more

How to filter data with the ADO.NET DataView in C#

If in your project you want to include only certain rows in the display you can use a DataView to apply custom filtering. To accomplish this, you should use the RowFilter property which acts like a WHERE clause in a SQL query. You can limit the final results by using it and by applying logical operators, …

Learn more

How to sort data with the ADO.NET DataView in C#

If in your project you need to sort data by using ADO.NET DataView you can use the next example as a basic. The example uses a page with three GridView controls. When the page loads, it binds the same DataTable to each of the grids. However, it uses three different views, each of which sorts the results using …

Learn more

How to monitor and block bad requests in ASP.NET in C#

You can use approach described in the article How to handle improper parameter values in ASP.NET in C# to create a blocking engine to handle and improve parameter values. You should manage invalid requests and notify the client about any invalid parameters that were passed in. You should reply to the request using one of the …

Learn more