h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Define Variables

 Variable declaration:
Syn: datatype variable;
Ex: int x;
Variable declaration along with initialization:
Syn: datatype variable=value;
Ex: int x=10;
Multiple Variable declaration:
Syn: datatype variable1, variable2, variable3,…;
Ex: int x,y,z;
Note:
     When we declare any variable, it should be assigned to a value before its usage.Otherwise, it causes a compile time error.

Define string[] args

   To receive the command like arguments. A command line argument is nothing but an argument, which can be passed from the command window, before the application execution is started.

Define void

It can‘t return any value unlike other methods. So that, it should be defined with void keyword.

Define Memory Manager

 The Memory Manager component of CLR, allocates necessary memory for the variables and objects that are to be used by the application.

Define Exception Manager


  •  An exception means Run time error.
  •  This component redirect the processor to execute the catch block or finally block,whenever an exception is occurred at run time.
  •  We can learn how to write these catch and finally blocks in C#.NET and VB.NET languages later.


Define .NET Framework Types

The .NET Framework is available in 3 different types:
 .NET Framework: 
         This is the general version, required to run .NET applications on Windows operating system.
 .NET Mono Framework: 
         This is required to run .NET applications on other operating systems like UNIX, LINUX and Solaris etc.
 .NET Compact Framework:
            This is required to run .NET applications on other devices like PDA (Personal Digital Assistants), Mobile phones and Smart phones.

Define Web Services

Web Services

  •  Web Services are simple and easy to understand.
  •  These can be developed using again ASP.NET.
  •  The web services are used to implement SOA(Service Oriented Architecture) in web applications.
  •  The main purpose of SOA is to implement some interaction between two applications.
  •  Examples:
  •   Online shopping requires credit card authentication, from back web site.

Modules of .NET

VC#.NET (Visual C Sharp.NET) –(Language)

  •  It is highly used .NET programming language, used by most of the .NET programmers.
  •  It borrows some programming features from C and some other programming features from C++. In addition to these, it borrows few of the good features of java language.
  •  It is the object oriented programming language.

VB.NET (Visual Basic.NET) –(Language)

  •  It is the Microsoft‘s recommended language for beginners of windows programming.
  •  But in fact, it is used in very few of the projects in the real-time development world, because most of the programmers usually comes with C and C++ background; hence they feel comfortable with C#.
  •  It borrows some programming features from VB (Visual Basic) language.
  •  It is the object oriented programming language.

ASP.NET (Active Server Pages.NET) – (Web Technology)

  •  It is the Microsoft‘s web technology.
  •  It is used for web sites development.
  •  It offers much attractive and user friendly user interfaces in the server side applications.
  •  It is the new version to another Microsoft‘s technology called ASP (Active Server Pages), which is a famous web technology before introducing ASP.NET.
  •  It requires HTML for web page designing.
  •  It requires a .NET language (like C#, VB.NET, VC++.NET etc.) for server side logic implementation.

ADO.NET (ActiveX Data Objects.NET) – (Database Technology)

  •  It is the Microsoft‘s database technology.
  •  It offers necessary programming libraries to access the local / server databases.
  •  It is the new version to another Microsoft‘s technology called ADO (ActiveX Data Objects), which is a famous database technology, used with VB, VC++ and ASP languages.
  •  It requires a .NET language (like C#, VB.NET, VC++.NET etc.) for logic implementation.


Languages Supported by .NET Framework

Languages from Microsoft : Visual C#.NET,Visual Basic.NET,Visual C++.NET
Languages from other vendors:
VJ#.NET,Python.NET,IronPython.NET,APL.NET,Cobol.NET,Perl.NET,Pascal.NET,Component Pascal.NET,Curriculum.NET,Eiffel.NET,Forth.NET,Fortran.NET,Haskell.NET,Mercury.NET,Mondrian.NET,Oberon.NET,RPG.NET,Scheme.NET,Small Talk.NET,Standard ML.NET

Get Total Quantity from Datagridview in C#.NET

Today , we will see "Get Total from Quantity Column in DataGridView in C#.Net"

Code
private double ADDCoulmnValue(int ColIdx, DataGridView dgv) { for (int idx = 0;idx <dgv.Rows.Count;idx++)
{ tot += Convert.ToDouble(dgv.Rows[idx].Cells[ColIdx].Value);
} }