rohanwarang

Stories submitted by rohanwarang

Update Panels and JSON Alternatives(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 2 years, 11 months ago

In most asp.net applications users experience post backs as a result of submit action by the client browsers. These post backs can be quite annoying when just a small part of the page needs to be refreshed. Update panels are designed to perform partial post back eliminating the need for doing a complete post back for updating a part of the page. But are these post backs truly partial? In this article we try to find out if Update panels actually improve performance by doing partial post backs or do they end up degrading it. read more...

add a comment |category: |Views: 38

tags: another

Preventing SQL Injection Using Linq(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years ago

SQL injection is one of the most common hacking methods for websites where authentication is required for accessing the website content. In this article we try to verify if linq based data access layers are truly immune to SQL injection. read more...

add a comment |category: |Views: 90

tags: another

Configuring WCF Throttling Behaviors(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years ago

Most WCF services hosted in a live environment if not configured for handling heavy simultaneous requests give a Denial of Service Error, better known as DoS attacks. To prevent these from happening we have to configure the throttling behavior and some attributes of the ServiceHost. In this article we try to understand and configure each throttling setting of a WCF service and how it affects the execution of the service. read more...

add a comment |category: |Views: 34

tags: another

Efficient Server Side Paging Alternatives(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 1 month ago

Every one of us has used paging in our projects to display tabular data in DataGrids or GridViews or in the more recent and more flexible ListViews. The problem we often face is when the data is less the paging works fine, but as the data starts to increase the page load times start increasing. The main reason for this is because we tend to bind the grids with entire data table and then use the built in functionality for paging. This article describes how to effectively do server side paging by retrieving only a finite amount of data using the traditional stored procedure technique, but optimized for not being affected by volume of data, and an alternative method using the very famous linq framework. read more...

add a comment |category: |Views: 50

tags: another

Thread Synchronization: Ensuring Atomic Operations(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 1 month ago

An article about atomic transactions and how to maintain them using locks in C# read more...

add a comment |category: |Views: 41

tags: another

Thread Synchronization: Avoiding Race Conditions(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 1 month ago

Race conditions in a multithreaded application and how to prevent them using Wait Handles read more...

add a comment |category: |Views: 30

tags: another

Asp.net Permalinks Using URL Rewriting(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 2 months ago

A technique for URL rewriting which describes how to achieve permalinks in ASP.net similar to blogs like wordpress. read more...

add a comment |category: |Views: 85

tags: another

The Using Block(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 2 months ago

The using block provides proper declaration and dispose of objects that implement IDisposable interface. IDisposable is implemented by managed classes that access unmanaged resources. FileStream is one such classes that accesses IntPtr and SafeFileHandle which are unmanaged handles. read more...

add a comment |category: |Views: 10

tags: another

Linq Filters On Lists(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 2 months ago

When and how to use linq to filter Collections read more...

add a comment |category: |Views: 31

tags: another

Threading On Multi-Core CPUs(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 2 months ago

A comparison between performance improvement using concurrent threads on multiple CPUs read more...

add a comment |category: |Views: 26

tags: another

File System Watcher And Large File Volumes(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 2 months ago

A threading based approach to overcome the buffer limit for File System Watcher control. read more...

add a comment |category: |Views: 95

tags: another

Data Transfer Using Self Hosted WCF Service(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 2 months ago

Hosting a WCF service to transfer streaming data using tcp sockets. The article describes how to tune a WCF service to handle large files and transfer them across the network using net tcp binding. read more...

add a comment |category: |Views: 196

tags: another