rstrahl

Stories submitted by rstrahl

Building a jQuery Plug-in to make an HTML Table scrollable(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year ago

Table displays in limited space require some rendering alternatives. While paging is a common way to address fixed size displays, it's not an end-all solution. Sometimes it's necessary to display larger amounts of data in a small fixed space on an HTML page. Scrollable list are fairly easy to do with most HTML structures, but HTML tables are notoriously difficult to manage when it comes to scrolling. In this post I describe a jQuery plug-in that attempts to make any table scrollable by decomposing and reassembling the table into two distinct areas. read more...

add a comment |category: |Views: 31

tags: another

Built-in GZip/Deflate Compression on IIS 7.x(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year ago

IIS 7.x makes content compression via GZip very easy. Here's how compression on IIS works and how you can set it up on your server in a few simple steps. read more...

add a comment |category: |Views: 41

tags: another

ASP.NET GZip Encoding Caveats(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year ago

GZip and Deflate compression is easy to use in ASP.NET applications, but there are a few caveats that you need to watch out for. This post reviews the basics of implementing compression in ASP.NET code and describes a couple of scenarios that can cause problems when using programmatic compression via Response.Filter. read more...

add a comment |category: |Views: 7

tags: another

ASP.NET Routing not working on IIS 7.0(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year, 2 months ago

Got caught be a difference in behavior between IIS 7.0 and IIS 7.5 with how module management to extensionless URLs are fired in IIS. Routing was working fine on my dev machine, but not on my live server. Here's what you need to watch out for. read more...

add a comment |category: |Views: 24

tags: another

Setting up custom ASP.NET Routing to an HttpHandler(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year, 2 months ago

Routing support in ASP.NET 4.0 has been vastly improved, but custom routing still involves a fairly complex process of creating RouteHandlers and mapping requests properly. In this post I show an example of how to create custom routes automatically via Attribute route mapping for Http Handler endpoints. read more...

add a comment |category: |Views: 20

tags: another

Hosting the Razor Engine for Templating in Non-Web Applications(www.west-wind.com)

submitted by rstrahlrstrahl(7226) 1 year, 4 months ago

In this article I describe a set of classes that provide a wrapper around the Razor View Engine so you can use it easily in your own applications to provide templating functionality. read more...

1 comment |category: |Views: 72

tags: another

Rendering Script References into the Html Header(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 4 months ago

ASP.NET natively supports script embedding only into the body of the HTML document which is limited in many ways if you need more control over how scripts load under program control. In this post I'll show one of my components that allows embedding scripts and script references in the header of the document as well as many useful script embedding features for ASP.NET. read more...

add a comment |category: |Views: 19

tags: another

Making Sense of ASP.NET Paths(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 5 months ago

ASP.NET includes a plethora of functions and utilities to retrieve information about the current requests and paths in general. So much so that it's often hard to remember exactly which path property or method you are actually looking for. This update to an old and very popular post from this blog summarizes many of the paths and path related operations that are available in ASP.NET. read more...

add a comment |category: |Views: 15

tags: another

Implementing a free standing ASP.NET Pager WebControl(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 5 months ago

Although there's decent Pager support in ASP.NET controls the way paging works is inconsistent and not very generic. After a recent experience of creating a small pager component for MVC I decided having a generic non-data or control dependent Pager WebControl would be useful. In this post I cover a custom Pager control implementation that addresses some of the shortcomings with the stock paging functionality for me. read more...

add a comment |category: |Views: 31

tags: another

Capturing and Transforming ASP.NET Output with Response.Filter(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 6 months ago

Capturing ASP.NET response output can be done in a variety of ways. In this post I'll discuss how you can use a Response.Filter to capture output and transform it using a simple class that provides event hooks to make it easy to capture output. read more...

add a comment |category: |Views: 35

tags: another

ClientIDMode in ASP.NET 4.0(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 7 months ago

The new ClientIDMode in ASP.NET 4.0 is one of my most anticipated features to reduce the naming clutter that ASP.NET naming container naming has traditionally introduced into page. In this post I describe the ClientIDMode behavior and the various ways of how you can control ClientID generation with ASP.NET 4.0 read more...

add a comment |category: |Views: 11

tags: another

No JavaScript IntelliSense in VS 2010 Beta 2? Reset your Settings(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 7 months ago

When I installed Visual Studio 2010 a couple of days ago I was really disappointed to see that Intellisense failed to work completely in the new install. No workey in .js files, or ASPX pages inside of script blocks. After some back and forth with folks on the ASPInsiders list and the product teams it looks like there is an issue somewhere with the default settings that get set when Visual Studio... read more...

add a comment |category: |Views: 103

tags: another

A generic way to find ASP.NET ClientIDs with jQuery(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 7 months ago

ASP.NET ClientIDs and NamingContainer naming are a nuisance when working with jQuery as these long IDs complicate finding elements on the page. In this post I show a very simple way to retrieve munged ClientIDs by just their ID names with a small helper function that still returns the jQuery wrapped set. read more...

add a comment |category: |Views: 333

tags: another

LINQ to SQL, Lazy Loading and Prefetching(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 7 months ago

Lazy loading in an ORM can be really useful or a royal pain if you walk through a lot of data. LINQ to SQL uses lazy loading of related entities and entity sets but there are a couple of ways that allow you to do eager loading instead. Both require some extra effort and foresight. read more...

add a comment |category: |Views: 293

tags: another

Lookbehind in Regex searches(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 7 months ago

Regex's more esoteric features are easy to miss as they make sense to me only in a context that applies to my work. I've certainly read about lookahead and lookbehind before but until I needed it today and was pointed to look at this functionality in the Regex engine it just didn't sink in. Lookbehind allows matching or not matching of a string before the the string you are interested in. It effectively allows you to look for values that don't have x before another match which is actually quite common. read more...

add a comment |category: |Views: 6

tags: another

Fun with Func<T,TResult> Delegates, Events and Async Operations(west-wind.com)

submitted by rstrahlrstrahl(7226) 2 years, 7 months ago

Delegates are powerful for event handling, highly useful in LINQ and a core requirement for async operations. Func<T> makes using delegate based logic a lot easier by providing a generic implemenation that in many cases allows you to skip creation of a separate delegate and instead just point at the Func<T> definition which can be a big timesaver and a nice way to remove delegate defintions from your namespaces. read more...

add a comment |category: |Views: 343

tags: another