Welcome to Sol 3 Sign in | Join | Help

ASPInsiders

Aggregation of ASPInsiders and Microsoft ASP.NET team member blogs.

Browse by Tags

All Tags » C#   (RSS)
Extension methods oddities
I’m back…I hope…After some complicated times which culminated in the floods which destroyed several regions of Madeira, I guess things are starting to coming back to normal…at least, that’s what I hope…I’ll probably return to blogging, though the rhythm Read More...
Events This Week – March 8th, 2010
Here are the events listed in Community Megaphone for the next week (or so) for the Mid-Atlantic area, as well as webcasts of interest…this list includes events imported from the UGSS event calendar , and all events entered in Community Megaphone are Read More...
Extension Methods make life easier (C#)
I use extension methods when I remember they exist.  I started getting tired of writing code to check strings for Null, Empty, Equal before using a database column when I remembered Extension Methods are there to make life easier!  Some great...( Read More...
Small LINQ Trick for Converting List<String> to String Text List
  Here is a shorthand way for converting a list of strings defined as follows: List<string> strings = new List<string> [...]

This site is a resource for asp.net web programming. It has examples by Peter Kellner of techniques for high performance programming
Linq2Sql: How to join tables on more than one column
You can join two tables in Linq2Sql by using an anonymous type to specify the join.  var r =     from o in db.Orders     join p in db.Products on o.ProductId equals p.ProductId     join pu in db.ProductUsers Read More...
How to 301 Permanent Redirect in ASP.NET
In the next release of the .NET Framework (.NET Framework 4.0) there is a new response method for permanently redirecting a request: Response.RedirectPermanent .  You can see the Beta MSDN documentation for Response.RedirectPermanent here .  Read More...
How to get an indexed item of an IEnumerable object (Linq)
If you have an IEnumerable<T> collection of some objects T and you need to get a particular item out of that collection, you cannot use the standard indexing that you would normally use with brackets ([index]).  If you try you will get an error Read More...
Authentication and Authorization Using RIA Services (Article 7 of 7)
    Title Of Each Article Video Included With Each Post Part 1 Introduction To RIA Services In Silverlight (This Article) 7 Minutes Part 2 Basic RIA Services And DataGrid With  VS 2010...

This site is a resource for asp.net web programming. It has examples by Peter Kellner of techniques for high performance programming
Adding A Sessions Page That Includes a Query Parameter In Silverlight VS2010 Beta2 (Article 6 of 7)
  Title Of Each Article Video Included With Each Post Part 1 Introduction To RIA Services In Silverlight (This Article) 7 Minutes Part 2 Basic RIA Services And DataGrid With  VS 2010 Tooling 14...

This site is a resource for asp.net web programming. It has examples by Peter Kellner of techniques for high performance programming
Adding Speakers Page Template With Converters In Visual Studio 2010 Beta2 (Article 5 of 7)
  Title Of Each Article Video Included With Each Post Part 1 Introduction To RIA Services In Silverlight (This Article) 7 Minutes Part 2 Basic RIA Services And DataGrid With  VS 2010 Tooling 14...

This site is a resource for asp.net web programming. It has examples by Peter Kellner of techniques for high performance programming
How To Convert From Request With Parameter to No Parameter in ASP.NET (Server.Transfer)
  The problem is that I’m trying to keep track of the exact URL a person selects including the request parameter.  That is, I have a URLs that can be played as follows: ...

This site is a resource for asp.net web programming. It has examples by Peter Kellner of techniques for high performance programming
Line-breaks and carriage returns (\r \n) are invalid in email subject
I received this exception when sending an email using System.Net.Mail.MailMessage: "The specified string is not in the form required for a subject." System.ArgumentException: The specified string is not in the form required for a subject.    Read More...
Putting a Point on a Map in the iPhone
I wrote the following code to put a point on a map on the iPhone. It works pretty well. Basically, I draw a map, then I inherit from the MKAnnotation object and create a new constructor, go out to geocoder and get a lat lon to senter the map on, and finally, Read More...
GDI+ Error when converting Tiff to Jpeg: Parameter is not valid
One of the web applications that I work on is Instant Church Directory , a website that helps churches create a church photo directory .  Since the main focus of the application is to create a photo directory, customers are uploading all sorts of Read More...
Thanks
I wanted to thank everyone that purchased a copy of my MonoTouch ebook . I got an email from my editor at Wrox last week and he saiys that sales are going very well. I think mobile is finally panning out! Share this post: email it! | bookmark it! | digg Read More...
More Posts Next page »