Wednesday, August 12, 2009

GridView (non-object/sql DataSource) Paging and Sorting

No comments:
This is just a quick reminder post about how to do things and in what order to get Paging and Sorting working together on a GridView Control when you’re datasource is NOT a SqlDataSource or ObjectDataSource reference by DataSourceId in the ASPX file but rather a (collection of) POCO objects or other datasource!   .ASPX file     <asp:GridView CssClass="tableStyle1"...
Read More

Monday, August 03, 2009

ASCII Encoded/Binary String Automated SQL Injection Attack

No comments:
Useful code for preventing SQL injections in .NET Querystrings, lifted from the following page:http://www.bloombit.com/Articles/2008/05/ASCII-Encoded-Binary-String-Automated-SQL-Injection.aspx/// /// global.asax/// public class Global : System.Web.HttpApplication{...private static string[] SQLKeywords = new string[]{"EXEC", "SELECT", "INSERT", "UPDATE", "DELETE","CAST", "DECLARE",...
Read More

My 30th birthday is looming....

No comments:
...so I've written a list of things I'd like!Stuff I’d Like for my Birthday:Framework Design Guidelines: Conventions, Idioms, and Patterns for re-useable .NET Libraries 2nd Edition, Book/DVD Packagehttp://www.compman.co.uk/scripts/browse.asp?ref=895703£22.34Hitman DVD – Unrated http://www.movietyme.com/catalog/product_info.php?products_id=39063&osCsid=dd991dc5d4a98e3f30952bf39550ad0c£15.99HMV...
Read More