Author Archives: phil

Extract the first N words from a string with C#

This code will return the first 5 words, change the number in the regular expression as needed:

Posted in RegEx | Tagged | Leave a comment

Streaming Files for more Secure Downloads in ASP.NET

If you just have a link to a file on your web site then you maybe leaving yourself open to other sites linking to the same files thereby giving their users the benefit of content without any hit on their … Continue reading

Posted in Security | Tagged | Leave a comment

Using the Entity Framework and the ObjectDataSource: Custom Paging

Readers maybe familiar with the Entity Framework (EF) tutorials on the asp.net web site (http://www.asp.net/entity-framework/tutorials). The latest addition to the series “Continuing with the Entity Framework” is an excellent tutorial on using version 4 of the Entity Framework in a … Continue reading

Posted in Entity Framework | Tagged | Leave a comment

Using data from Entity Framework 2 to fill a 2010 local SSRS report in ASP.NET

When you design a local SSRS report you are forced to use a Dataset as part of the design process, however, this does not mean that you have to keep the dependancy on a dataset or even retain the dataset … Continue reading

Posted in Entity Framework | Tagged , | Leave a comment