Posts

Showing posts from July, 2013

Literal content (' ') is not allowed within a System.Web.UI.HTMLControls.HtmlTableCellCollection

Image
Today, i was involved in an issue which was faced by one of my colleague. Issue was: We investigated the issue for couple of hours and found that double quotation " was missed in HTML code, shown below: After resolving the issue, i have learnt that, this type of issues occur due to very simple errors in our code and we spend a lot of time to resolve them. So whenever we code, we should care about what we are typing and make sure that we write a correct code by checking or compiling the code before jumping to another line or function of the code.

Continuous Integration, Delivery and Deployment

In today's post we will look at 3 continuous processes. They are:   Continuous Integration (CI) is a development practice that requires developers to integrate code into a shared repository several times a day. Each check-in is then verified by an automated build, allowing teams to detect problems early. By integrating regularly, you can detect errors quickly, and locate them more easily. Because you’re integrating so frequently, there is significantly less back-tracking to discover where things went wrong, so you can spend more time building features. Continuous Integration brings multiple benefits to the organization but this could be possible only if: Developers check in their code frequently They don’t check in broken code They check in only tested code They build the code on their local machines (work spaces) before check in. After check in, CI server builds the system successfully and after successful build developer go home. Continuous Deployment is a proces

What is Inversion of Control?

What is Inversion of Control? Inversion of Control (IoC) and Dependency Injection (DI) are two related practices in software development which are known to lead to higher testability and maintainability of software products. these patterns are said to be based on a principle, which states: "don't call us, we'll call you". If you follow these simple two steps, you have done inversion of control: Separate what -to-do part from when -to-do part. Ensure that when part knows as little as possible about what part; and vice versa. There are several techniques possible for each of these steps based on the technology/language you are using for your implementation.The inversion part of the Inversion of Control (IoC) is the confusing thing; because inversion is the relative term. The best way to understand IoC is to forget about that word! Inversion of control is a practical way to reduce code duplication, and if you find yourself copying an entire

Undefined in JavaScript.

Image
I was stuck for 2 hours on this. I kept getting ’The value of the property 'GetData' is null or undefined, not a Function object’. Finally, I caught the error and resolved it in my js file and the error went away. The lesson is that undefined means you haven’t defined it yet. Make sure js file is error free and that you didn’t forget to include the js file. If there is a "semi colon" error, you could face such type of errors.

Visual Studio 2012 New Features of the IDE

In this post, we will look at some of the new features of Visual Studio 2012’s IDE. Dark Color Theme for Code Editor and IDE window: Visual Studio 2012 provides out of the box option to have a White on Black color scheme, Dark AKA  White on Black  color schemes have become choice of many developers as many have realized that they are easy on the eyes. Quick Launch - Search the VS commands / menu options: Seems Visual Studio has more than  4000 commands , apart from the frequently used commands, it wouldn't be practical to remember most of the commands, hence Visual Studio 2012 has a cool feature called  Quick Launch - Ctrl+Q  located in the top right corner in the Visual Studio 2012 IDE.  You can start typing few letters of the command you are looking for and Quick Launch will provide auto-suggest with commands that starts with the letters you have typed.  It shows the shortcut keys for each command which is pretty neat. Pinned TAB: This is a feature found in 

Top JavaScript Frameworks...

Following are the popular javascript frameworks: DOM (manipulation) related Dojo Toolki t  jQuery MooTools Prototype JavaScript Framework YUI Library GUI-related DHTMLX Ext JS jQuery UI Lively Kernel Kendo UI CreateJS Shield UI   Graphical/Visualization D3.js CanvasJS HTML5 Charts JavaScript InfoVis Toolkit Kinetic.js Processing.js Raphaël Three.js Frame-Engine Web-application related (MCV, MVVM etc) AngularJS Backbone.js Batman.js Cappuccino Google Web Toolkit JavaScriptMVC Knockout  Pure Javascript/AJAX FuncJS Google Closure Library jsPHP Microsoft's Ajax library MochiKit PDF.js Underscore.js Wakanda Framework Template Systems Handlebars jQuery Mobile Mustache Twitter Bootstrap        

When to use an Abstract Class and When an Interface... Some TIPS

The choice of whether to design your functionality as an interface or an abstract class can sometimes be a difficult one. An abstract class is a class that cannot be instantiated, but must be inherited from. An abstract class may be fully implemented, but is more usually partially implemented or not implemented at all, thereby encapsulating common functionality for inherited classes. An interface, by contrast, is a totally abstract set of members that can be thought of as defining a contract for conduct. The implementation of an interface is left completely to the developer. Both interfaces and abstract classes are useful for component interaction. If a method requires an interface as an argument, then any object that implements that interface can be used in the argument.  Interfaces offer more design flexibility; precisely because, they can be implemented by any class regardless of its type hierarchy. An abstract class can contain an interface plus implementations. This simpli

The Web API Request's Journey

Image
ASP.Net Web API Flow ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework. So HTTP is not just for serving up web pages. It is also a powerful platform for building APIs that expose services and data. Hosting Web API Web API can be hosted either on ASP.NET or you could write a Console App or a Windows Service yourself to self-host. Web API’s flexibility starts right at the core as to where it can be hosted. ·          ASP.NET Hosting : When hosted on ASP.NET, the lifecycle starts with the HttpControllerHandler which is an implementation of IHttpAsyncHandler and is responsible for passing requests into the HttpServer pipeline. ·          Self Hosting : When you are Self Hosting, the HttpServer pipeline starts at the HttpSelfHostServer which is an implementation of HttpServer a

Difference between Asp.Net Web API and Asp.Net MVC

Following are some points in difference between Web API and MVC . 1.       Asp.Net MVC is used to create a web application that returns both views and data but Asp.Net Web API is used to create full blown HTTP services with easy and simple way that returns only data. 2.       Web API helps to build REST-ful services over the .NET Framework and it also support content-negotiation(it's about deciding the best response format data that could be acceptable by the client. it could be JSON,XML,ATOM or other formatted data), self hosting which are not in MVC. 3.       Web API also takes care of returning data in particular format like JSON,XML or any other based upon the Accept header in the request. MVC only return data in JSON format using JsonResult. 4.       In Web API the request are mapped to the actions based on HTTP verbs but in MVC it is mapped to actions name. 5.       Asp.Net Web API is new framework and part of the core ASP.NET framework. The model bi