Geeks With Blogs
The Quandary Phase This code was generated by a tool. January 2009 Entries
ASP.NET: Downloading a DataTable in CSV Format
Here's a really quick tip: how to convert a DataTable to CSV, and write it dynamically to the response stream. In ASP.NET, If you need to allow users to download the contents of a datatable in flat file format (i.e. CSV, TAB etc) you could do this by writing the data to a temporary file, then writing the resulting file to the response using TransmitFile. However, a quicker and less expensive method is to stream it directly. Here's a method which allows you to do just that: /// <summary> /// ......

Posted On Thursday, January 29, 2009 12:09 PM

WPF Gesture Navigation
FireGestures is one of my favourite Firefox extensions. I have become so accustomed to it of late that I now find web browsing without gesture navigation hopelessly slow. I have been thinking that it would be nice to start baking gesture navigation into my own applications. Clearly, this is not the kind of feature you would want to shoehorn into any application, but used sparingly and where appropriate it is a great way of short-cutting user navigation and providing a more user-friendly UI experience. ......

Posted On Monday, January 26, 2009 5:51 PM

Copyright © Adam Pooler | Powered by: GeeksWithBlogs.net