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)
Parameters by reference
By default, parameters are always pass by value. However, the CLR does allow you to pass parameters by reference. In C#, you can use the out or ref keywords for passing parameters by reference. When the compiler sees that you’ve used these keywords, it Read More...
Parameters: by value or by reference? Say what?
I’m guessing that I won’t be giving any news when I say that parameters are used for passing values into methods. By default, parameters are passed by value. Here’s a quick example which will let us discuss this behavior: public class Student { public Read More...
Extension methods: what, how, when
I’ve already written a little bit about extension methods in the past. However, since I’ve decided to create a new basics series, I think that I probably should go back and write about it again. I guess that the first thing I need to do is define the Read More...
.NET BC : A Lap around WebMatrix; With a dash of Razor
Last night most of the DotNetnuke team and I traveled into Burnaby, to the BCIT campus where I gave a real quick (1 hour) presentation on the WebMatrix Beta, and Razor Syntax. I was happy to see that we had over 60 people attend. It was awesome to see Read More...
How to switch between HTTP and HTTPS in ASP.NET MVC2
ASP.NET MVC2 has the new RequireHttpsAttribute that you can use to decorate any action to force any non-secure request to come through HTTPS (SSL).  It can be used as simply as this:         [RequireHttps]         Read More...
Validating Data in Silverlight 4 Applications – IDataErrorInfo
Data validation is an important part of any application. If you've written code to validate data in Silverlight applications prior to the release of Silverlight 4, you've probably discovered that there isn't a great way to ensure that data is entered Read More...
Sprite and Image Optimization Framework & DotNetNuke
Introduction The folks over at Microsoft recently pushed a open source release of their Sprite and Image Optimization Framework onto Codeplex last week.  And after a few tweaks I was able to get it running within DotNetNuke, here is how… Download Read More...
Understanding the Role of Commanding in Silverlight 4 Applications
I’ve had the opportunity to give a lot of presentations on the Model-View-ViewModel (MVVM) lately both publicly and internally for companies and wanted to put together a post that covers some of the frequent questions I get on commanding.  MVVM relies Read More...
Silverlight 4 Code Demos from the Microsoft TechReady Workshop
I had the opportunity to give a 1-day workshop covering new Silverlight 4 features at the TechReady conference on Microsoft’s Redmond campus this weekend and wanted to post some of the sample code shown for the people who attended and anyone else who’s Read More...
Learn iPhone Programming for Free with Wrox, Novell, and McClure
Are you a .NET Developer wanting to get into developing on the Apple iPhone and iPad? Learn iPhone Programming for Free with Wrox, Novell, and McClure. Wrox/Wiley has released Wallace McClure’s Wrox Blox on Novell’s MonoTouch for free. The MonoTouch Wrox Read More...
How To Override ToString() in a Simple C# Class
So, you have a simple class that has a bunch public properties and you want to be able to use ToString() on it to show some data?  It’s easy.  All you have to do is override the ToString()...

This site is a resource for asp.net web programming. It has examples by Peter Kellner of techniques for high performance programming
Introducing… Dynamo – A Scriptable DotNetNuke module
Introduction Imagine, for a second, you have a server sided JavaScript interpreter built right into a Content Management System. It should have full access to the entire Server sided API’s, depending on security requirements of course. You could literally Read More...
How to implement ISNULL(SUM(ColumnName),0) in Linq2SQL
I had a Linq2Sql statement like this: var q = from o in db.OrderItem                   where o.UserId == UserId                   Read More...
A Handy Refactoring with CodeRush (InLine Temp)
I’ve recently started using CodeRush with Visual Studio 2010 and am so far very impressed with the convenience it adds to coding.  One thing that is very clear is that the creators of CodeRush...

This site is a resource for asp.net web programming. It has examples by Peter Kellner of techniques for high performance programming
Extension method madness
Even though I haven’t been as active as I wished, I have still managed to get some time to read several interesting blog posts lately. Unfortunately, it seems like two guys that I have a lot of respect for (though I haven’t had the pleasure of meeting Read More...
More Posts Next page »