Posts

Showing posts from 2012

What's New in ASP.NET 4.5 and Visual Studio 2012

http://www.asp.net/vnext/overview/whitepapers/whats-new

Asp.net- Pass a Table Valued Parameter to Stored Procedure in C# VB.NET Example

http://www.aspdotnet-suresh.com/2012/09/aspnet-pass-table-valued-parameter-to.html http://www.aspdotnet-suresh.com/2012/09/pass-table-as-parameter-to-stored.html?utm_source=feedburner&utm_medium=email&utm_campaign=Feed%3A+aspdotnet-suresh+%28Aspdotnet-Suresh.Com+Recent+Articles%29                                                  Author :  Aspdotnet-Suresh.com  

Application Migration and Porting - Software Product Development

The Word "Migration" in simple term means shifting or we can say transferring something to a different place. Similarly, if we talk about Migration in terms of application or software it means converting the application to a new platform. It can be explained as importing of legacy data to a new system. Migration is basically used when an application needs to be migrated to new platform or a new system. Needs of Application migration rises with new technologies and the trends in the market. There are different types of application migrations offered by a software development company:- * Migration of Operating Systems- Migration of a Windows based application to MAC OS. * Pre.NET to.NET- It talks about versions, migration of an application developed in previous versions of.NET to latest Versions of.NET. * Migration of Application Servers. * JAVA to.NET and.NET to JAVA-it talks about migration of application built in JAVA to.NET or Vice-vice. * Migration of da

Constructor Vs Static Constructor

A Constructor is usually used to initialize data. However Static Constructor is used to initialize only static members. Here I am just talking about the Constructors. How they get initialized and how they behave. Things to know about Static Constructor It is used to initialize static data members.  Can't access anything but static members. Can't have parameters Can't have access modifiers like Public, Private or Protected. Now once you understand the above points, you can appreciate the difference between Static Class and Unstatic Class Static Class cannot be instantiated unlike the unstatic class. You should directly access its Method via the ClassName.MethodName A Program can't tell when it is going to load static class but its definitely loaded before the call. A Static class will always have the static constructor and its called only once since after that its in the memory for its lifetime. A Static class can contain only static members. So all the

Lambda Expressions

Lambda expressions are part of .Net 3.0. They are used extensively in Linq, but they can also be used on their own. With Lambda expressions, filtering and sorting Lists has become a lot easier.  I'm going to filter and sort Lists of Employee objects: public class Employee {      public string FirstName { set ; get ;}      public string LastName { set ; get ;}      public decimal Salary { set ; get ;}      public bool IsManager { set ; get ;} } FindAll( )   Suppose I have a List of Employees, and I want to find all the managers.  At one point I would have written code like this: List < Employee > managers = new List< Employee >( ); foreach ( Employee employee in employees) {      if (employee.IsManager == true )         managers.Add(employee); } The new syntax with Lambda expressions is clean and simple:   List < Employee > managers = employees.FindAll(employee => employee.IsManager == true ); Note that the term "employee

ASP.NET MVC Vs ASP.NET WebForms

Here are some points that differentiate ASP.NET WebForms from ASP.NET MVC: ASP.NET WebForms ASP.NET MVC Uses the ‘Page Controller’ pattern. Each page has a code-behind class that acts as a controller and is responsible for rendering the layout. Uses the ‘Front Controller’ pattern. There is a single central controller for all pages to process web application requests and facilitates a rich routing architecture Uses an architecture that combines the Controller (code behind) and the View (.aspx). Thus the Controller has a dependency on the View. Due to this, testing and maintainability becomes an issue. ASP.NET MVC enforces a "separation of concerns". The Model does not know anything about the View. The View does not know there’s a Controller. This makes MVC applications easier to test and maintain. The View is called before the Controller. Controller renders View based on actions as a result of the User Interactions on the UI. At its core, you ‘canno

Advantages of MVC Model

Advantages of MVC Model Enable clean separation of concerns (SoC) . Enable full control over the rendered HTML. Enable Test Driven Development (TDD) (built with TDD in mind). SEO and REST friendly URL. Easy integration with JavaScript frameworks. Support third-party view engines such as NVelocity, Brail, NHaml. No ViewState and PostBack events. Follows the stateless nature of web. Extensible and Pluggable framework.  Ideal platform for Web 2.0 applications.

MVC Fundamentals

A .  3 Loosely Coupled main components of An MVC Application Input Logic ---------- belongs to ---------- CONTROLLER. UI Logic -------------- belongs to ---------- VEIW. Business Logic------- belongs to ---------- MODEL.       B.     Testing individual loosely Coupled components are Easier. C.      MVC does not use VEIW-STATE or SERVER-BASED forms, thus making developers to have full control over the     Application Behavior. D.     MVC is good for applications which need high Degree of control over the Application Behavior. E.      ASP.NET uses “Page Controller” pattern that adds functionality to individual pages. F.       Managing State Information is easier for ASP.NET. G.     ASP.NET enables rapid application development. H.     The components of ASP.NET (like the page class, controls, etc. ) are tightly integrated and usually requires less code than MVC. I.        Components of MVC can be easily replaced / customized. You can plug-in your

MSMQ - Overview

1) Overview of MSMQ MSMQ stands for Microsoft Messaging Queue. MSMQ works on disconnected or connected mode and provides Asynchronous Programming. If client is disconnected from network, in that scenario, MSMQ is the most preferrable method because in this case the Server does not need to wait for client to read the data and send back the acknowledgement to server. (sample code in this article are tested on Visual Studio 2008) (2) Verifying whether MSMQ is installed on your system Navigate to "Services" by executing "Services.msc" in Run menu, then Sort on Name and Scroll down to find Message Queuing. If it is not there, that means MSMQ is not installed. (3) MSMQ Setup Control Panel -- Add/Remove Windows Components -- Select Message Queuing – Next (and follow in the instructions given on the subsequent windows) This will install MSMQ in your system and it can be verified by Navigating to Computer Management also as given below… Control panel -- Adm