Posts

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.