20 Dec: Must Read Codes [6-10]
Dec20

20 Dec: Must Read Codes [6-10]

Welcome to CodeSpread! We are sharing few must read codes/concepts which are required now and then. Each of these codereads doesn’t require a full length descriptive article so combining them into groups of five. CodeReads #6, What is the difference between Dispose and Finalize? #Point 1, Dispose is used to release unmanaged resources in a deterministic fashion, like we know when to release the resource. Finalize method is also used...

Read More
19 Dec: Must Read Codes [1-5]
Dec19

19 Dec: Must Read Codes [1-5]

We are sharing few must read codes/concepts which are required now and then. Each of these codereads doesn’t require a full length descriptive article so combining them into groups of five. CodeReads #1, Usage of ‘this’ keyword in C#. To qualify members hidden by similar name. To have an object pass itself as a parameter to other methods. To have an object return itself from a method. To declare indexers. To declare...

Read More
ASP.NET and Web Tools 2013.1 for Visual Studio 2012
Nov21

ASP.NET and Web Tools 2013.1 for Visual Studio 2012

.NET Web Development and Tools group at Microsoft announces release of ASP.NET and Web Tools 2013.1 for Visual Studio 2012. Few of the features are: 1) Round tripping: With this update, developers working on Visual Studio 2012 and Visual Studio 2013 can collaborate on an ASP.NET MVC 5 application. It provides support for editing a Razor view like syntax highlighting and Intellisense. 2) ASP.NET MVC 5 and Web API 2 Templates. 3)...

Read More
Error Handling at Page level or Application level
Oct10

Error Handling at Page level or Application level

A regular query of a developer as which is the best way to handle errors? at Page level or Application level. Best answer is why to chose one over the other? Lets have both. We will try some sample for Page level Error Handling and Application level Error Handling. How to Handle errors at Page level? To catch errors, the best way available is Try/Catch block on code file. public void Calculate() { try { //Do some Calculation }...

Read More
Custom error mode in ASP.NET web.config
Sep03

Custom error mode in ASP.NET web.config

Dual Roles As a developer, I would love to see the error page that provides details of the error, status code and also the stack information. This information is useful to debug the application but soon becomes an ugly yellow page when I switched my role from developer to user. Who wants to see an ugly yellow page? Just a developer (sigh!) Here comes the custom error page to the rescue, from yellow page,to indicate an error. We just...

Read More
Page 1 of 512345