13 posts found

jCrop and ASP.NET server-side image resizing combined

Today, I'm going to show you how to combine jQuery, jCrop, and ImageResizing.Net to create an AJAX cropping interface - in 11 lines of javascript. This produces true, cropped images that you can use anywhere on the site simply by referencing the generated URL.

Read more...

Image Resizer in Action!

I've seen some neat things done with the resizer, but I want to hear more! Put a link to your website and a description of how you are using it in the Comments section. Here's some stuff I've seen: Weather imagery manipulation Real estate photograph and mapping Photography sites Product catalogs Social networking sites Integration into a variety of CMSes (DotNetNuke and a few others I can't remember) However you are using it, whatever you are doing - show us!

Read more...

Performance killer: Disk I/O

Many people think of "performance tuning" as optimizing loops, algorithms, and memory use. In truth, however, you don't get the huge performance gains from optimizing CPU and memory use (which is good), but from eliminating I/O calls.

Read more...

Types of ASP.NET paths

ASP.NET is primarily concerned with "virtual paths", the portion of the path following the hostname or port number. When working with ASP.NET, you must understand the following types of URIs thoroughly, and know how they are handled by ASP.NET and the browser.

Read more...

Using a custom VirtualPathProvider can cause OutOfMemoryExceptions

Virtual path providers are awesome - you can serve a site from a .zip file, perform XSLT transformations to generate .aspx files as the compiler reads them, and do all sorts of unusual things. However, using them can make the StaticFileHandler buffer entire downloads in memory before sending the data to the client.

Read more...

The Query String

The query string is handled differently from the rest of the virtual path. It is neither URL decoded or case-normalized before it reaches ASP.NET, although each name-value pair is URL decoded before being stored in the Request.QueryString collection.

Read more...

PathInfo Woes

ASP.NET introduces a new URI component to the equation: PathInfo. It's not very well known, possibly due to poor implementation and consequent lack of usefulness. However, it is important that you understand how it can affect you.

Read more...

Incoming request paths

Casing and URL encoding add significant complexity to the jobs IIS and ASP.NET must perform. ASP.NET automatically decodes and lowercases the scheme, host, and port. The Path (and PathInfo) portions are decoded, but case is not changed.

Read more...

Designing URIs

One of the most critical steps in designing a web site is choosing your URI structure for the site. Clean, friendly URIs make visitors more comfortable and help them keep track of where they are on the site,

Read more...