C# - Raj Kaimal

Browse by Tags

All Tags » C# (RSS)

Creating an ASP.NET report using Visual Studio 2010 - Part 3

We continue building our report in this three part series. Creating an ASP.NET report using Visual Studio 2010 - Part 1 Creating an ASP.NET report using Visual Studio 2010 - Part 2 Adding the ReportViewer control and filter drop downs. Open the source...

Setting up Visual Studio 2010 to step into Microsoft .NET Source Code

Using the Microsoft Symbol Server to obtain symbol debugging information is now much easier in VS 2010. Microsoft gives you access to their internet symbol server that contains symbol files for most of the .NET framework including the recently announced...
Posted by rajbk | 9 comment(s)
Filed under: , , , , ,

ASP.NET Dynamic Data Deployment Error

You have an ASP.NET 3.5 dynamic data website that works great on your local box. When you deploy it to your production machine and turn on debug, you get the YSD Server Error in '/MyPath/MyApp' Application. Parser Error Description: An error occurred...
Posted by rajbk | with no comments
Filed under: , , ,

ASP.NET Asynchronous Pages and when to use them

There have been several articles posted about using asynchronous pages in ASP.NET but none of them go into detail as to when you should use them. I finally saw a great post by Thomas Marquardt that explains the process in depth. He addresses a key misconception...
Posted by rajbk | 1 comment(s)
Filed under: , , , ,

Code snippets for ASP.NET MVC2 in VS 2010

VS 2010 comes with ready made snippets which helps you save time while coding. You insert a snippet by typing the name of the code snippet and hitting the Tab key twice. You can also use the following method if you wish to see a listing of snippets available...
Posted by rajbk | 3 comment(s)
Filed under: , , ,

Securing an ASP.NET MVC 2 Application

This post attempts to look at some of the methods that can be used to secure an ASP.NET MVC 2 Application called Northwind Traders Human Resources . The sample code for the project is attached at the bottom of this post. We are going to use a slightly...
Posted by rajbk | 4 comment(s)
Filed under: , , , ,

Easy way to update models in your ASP.NET MVC business layer

Brad Wilson just mentioned that the MVC Futures library has a static ModelCopier class with a CopyModel(object from, object to) static method. It uses reflection to match properties with the same name and compatible types. In short, instead of manually...
Posted by rajbk | 6 comment(s)
Filed under: , , ,

How LINQ to Object statements work

This post goes into detail as to now LINQ statements work when querying a collection of objects. This topic assumes you have an understanding of how generics , delegates , implicitly typed variables , lambda expressions , object/collection initializers...
Posted by rajbk | 2 comment(s)
Filed under: , , ,

Using delegates in C# (Part 2)

Part 1 of this post can be read here . We are now about to see the different syntaxes for invoking a delegate and some c# syntactic sugar which allows you to code faster. We have the following console application. 1: public delegate double Operation(...
Posted by rajbk | 11 comment(s)
Filed under: , , ,

Using Delegates in C# (Part 1)

This post provides a very basic introduction of delegates in C#. Part 2 of this post can be read here . A delegate is a class that is derived from System.Delegate .  It contains a list of one or more methods called an invocation list. When a delegate...
Posted by rajbk | 8 comment(s)
Filed under: , , ,
More Posts Next page »