rohanwarang

Stories kicked 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

Resizing images without loss of quality(weblogs.asp.net)

submitted by gpeipmangpeipman(3145) 3 years, 1 month ago

ASP.NET provides us with System.Drawing namespace where we can find classes we can use to manipulate with images. There are many people out there who mistakenly think that Image.GetThumbnailImage is best choice for image resizing. You can easily create crappy images if you follow the code examples in previously pointed article. In this post I will show you how to resize images without negative side effects. read more...

1 comment |category: |Views: 429

tags: another

Add a DotNetKicks button for your WordPress blog(jack-fx.com)

submitted by jack.niujack.niu(20) 3 years, 1 month ago

Add the DotNetKicks “Kick it” icon to the bottom of each post in Wordpress read more...

add a comment |category: |Views: 9

tags: another

Content Stealing Jerks(kevinwilliampang.com)

submitted by kpanghmckpanghmc(2055) 3 years, 1 month ago

I've grown somewhat accustomed to seeing my articles regurgitated on some random blogger's site and passed off as their own. Usually I just send content stealing jerk (CSJ for future reference) an e-mail asking that they provide some sort of link back to my original article and leave it at that. Sometimes they comply, oftentimes they don't. In the end, life goes on. After all, it's not like I'm going to press charges over it. read more...

add a comment |category: |Views: 690

tags: another

5 Useful SQL Server Scripts(blog.tboda.com)

submitted by lobsterinolobsterino(320) 3 years, 1 month ago

Collection of 5 useful scripts for SQL Server. read more...

add a comment |category: |Views: 782

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

Going parallel…(ajdotnet.wordpress.com)

submitted by ajdotnetajdotnet(2940) 3 years, 2 months ago

The so-called „many core shift“ is happening. It’s not a thing of the future, it’s not „just around the corner“, it has already begun. And it will change our developers’ life. read more...

add a comment |category: |Views: 369

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

IEnumerable 101(brianc.me)

submitted by briancbrianc(195) 3 years, 2 months ago

Starter information read more...

add a comment |category: |Views: 48

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