×
SUCCESS DOESN'T HAPPEN TO YOU. IT HAPPENS BECAUSE OF YOU
--Your friends at LectureNotes
Close

Note for C# and .NET - C#.NET By Umesh Kumar

  • C# and .NET - C#.NET
  • Note
  • Master of Computer Applications
  • 477 Views
  • 3 Offline Downloads
  • Uploaded 2 months ago
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

ATAL BIHARI VAJPAYEE VISHWAVIDYALAYA, BILASPUR LECTURE NOTES ON .NET TECHNOLOGY MSC (CS) II YEAR III SEMETER (PAPER-IV) Mr. UMESH KUMAR, MCA (GGU) DEPARTMENT OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY BILASPUR VISHWAVIDYALAY, BILASPUR NEAR GANDHI CHOWK, CHHATTISAGARH 495009 By Mr. UMESH KUMAR, MCA (GGU) Page | 1 Department of computer science and information technology

Text from page-2

UNIT–I Introduction Introduction to .NET Technology, .NET Framework, and its evolutions, Components of .NET CLR and Class Library Importance of MSIL, CTS etc., Class Libraries, Introduction to Visual Studio.NET, IDE, Menu Bar, Toolbox, Output Windows, Code editor, Visual Studio Debugging. UNIT–II C# Language Basic, variable and Data Types, Arrays, Strings, type conversion operation, statement, conditional statements, loop statements, Methods, class, object, properties, static member, overloading, inheritance, constructor, events, partial class, namespace and assemblies, Generics Collections, Threading. UNIT–III ASP.NET Creating Websites, Designing Web form, Anatomy of a Web Form, Writing Code, ASP.NET page life cycle,. Page class, Application events, ASP.NET configuration; Web controls: Textbox, Picture, File Upload, Button Controls, List Controls, Input Validation Controls etc, Master Page Basics, Website Navigation: Site Maps, Tree View Control, Menu Control. UNIT–IV Error Handling Common Error, Exception Handling, Handling Exceptions, Creating and Throwing Your Own Exceptions, ADO.NET Fundamentals: ADO.NET architecture, Connection class, Command class, Data reader class, DataSet, DataAdopter class, DataView class. . UNIT–V Data Binding Basic Data Binding, Data Source Controls, SqlDataSource, ObjectDataSource; Rich Data Controls: GridView, Formatting the GridView, GridView Row Selection, Sorting the GridView, Paging the GridView, GridView Templates, ListView, DetailsView and FormView. By Mr. UMESH KUMAR, MCA (GGU) Page | 2 Department of computer science and information technology

Text from page-3

UNIT–I Introduction to .NET Technology .NET Framework The .Net framework is a software development platform developed by Microsoft. The framework was meant to create applications, which would run on the Windows Platform. The first version of the .Net framework was released in the year 2002.  .NET is a framework to develop software applications. It is designed and developed by Microsoft and the first beta version released in 2002.  It is used to develop applications for web, Windows, phone. Moreover, it provides a broad range of functionalities and support.  This framework contains a large number of class libraries known as Framework Class Library (FCL). The software programs written in .NET are executed in the execution environment, which is called CLR (Common Language Runtime). These are the core and essential parts of the .NET framework.  The version was called .Net framework 1.0. The .Net framework has come a long way since then, and the current version is 4.7.1.  The .Net framework can be used to create both - Form-based and Webbased applications. Web services can also be developed using the .Net framework.  The framework also supports various programming languages such as Visual Basic and C#. So developers can choose and select the language to develop the required application. In this chapter, you will learn some basics of the .Net framework. We have written several tutorials for you, each for their own specific, .NET related technology. 1. C# is the preferred language for writing .NET applications. Whether you want to work on web or Windows based applications, you should learn C#. There are alternatives, like VB.NET, but C# is the most widely supported .NET language. Fortunately for you, we have an entire tutorial dedicated to the subject, which will guide you through all the interesting parts of the language. 2. ASP.NET is a great technology for building websites. If you have already learned C#, ASP.NET is easy to get started with and once you have learned it, the possibilities for creating great websites are almost endless. 3. AJAX for ASP.NET allows you to easily create more responsive and user-friendly websites. With this cool technology, you can do partial updates of your web pages very easily. The .NET Framework is composed of four main components: 1. Common Language Runtime (CLR) 2. Framework Class Library (FCL), 3. Core Languages (WinForms, ASP.NET, and ADO.NET), and 4. Other Modules (WCF, WPF, WF, Card Space, LINQ, Entity Framework, Parallel LINQ, Task Parallel Library, etc.) 1. Common Language Runtime  The "Common Language Infrastructure" or CLI is a platform on which the .Net programs are executed.  It is a program execution engine that loads and executes the program. It converts the program into native code.  It acts as an interface between the framework and operating system. It does exception handling, memory management, and garbage collection.  Moreover, it provides security, type-safety, interoperability, and portablility. A list of CLR components are given below: By Mr. UMESH KUMAR, MCA (GGU) Page | 3 Department of computer science and information technology

Text from page-4

 .NET CLR is a run-time environment that manages and executes the code written in any .NET programming language.  It converts code into native code which further can be executed by the CPU. .NET CLR Functions Following are the functions of the CLR.  It converts the program into native code.  Handles Exceptions  Provides type-safety  Memory management  Provides security  Improved performance  Language independent  Platform independent  Garbage collection Provides language features such as inheritance, interfaces, and overloading for object-oriented programmings. .NET CLR Versions The CLR updates itself time to time to provide better performance. .NET version 1.0 1.1 2.0 3.0 3.5 4 4.5 4.6 4.6 CLR version 1.0 1.1 2.0 2.0 2.0 4 4 4 4 The CLI has the following key features:  Exception Handling - Exceptions are errors which occur when the application is executed. Examples of exceptions are:  If an application tries to open a file on the local machine, but the file is not present.  If the application tries to fetch some records from a database, but the connection to the database is not valid.  Garbage Collection - Garbage collection is the process of removing unwanted resources when they are no longer required. Examples of garbage collection are  A File handle which is no longer required. If the application has finished all operations on a file, then the file handle may no longer be required.  The database connection is no longer required. If the application has finished all operations on a database, then the database connection may no longer be required. Working with Various programming languages – As noted in an earlier section, a developer can develop an application in a variety of .Net programming languages.  Language - The first level is the programming language itself, the most common ones are VB.Net and C#. By Mr. UMESH KUMAR, MCA (GGU) Page | 4 Department of computer science and information technology

Lecture Notes