Jaipur Institute of Engineering and Management: Submitted in Partial Fulfilment For The Award of Degree of
Jaipur Institute of Engineering and Management: Submitted in Partial Fulfilment For The Award of Degree of
Jaipur Institute of Engineering and Management: Submitted in Partial Fulfilment For The Award of Degree of
SEMINAR REPORT
ON
“.NET FRAMEWORK”
BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE ENGINEERING
2018-19
Submitted To: Submitted By:
CANDIDATE’S DECLARATION
I hereby declare that the work, which is being presented in the training report, entitled “Seminar Report ANDROID”
in partial fulfilment for the award of degree of “Bachelor Of Technology” in Department of Computer Science &
Engineering and submitted to the Department of Computer Science & Engineering Jaipur Institute Engineering And
Management, Rajasthan Technical University is a record of my own investigations carried under the guidance of Mr. Ram
Choudhary Department of Computer Science & Engineering, Jaipur Institute Engineering And Management. I have not
submitted the matter presented in this report anywhere of any other Degree.
Nidhi Kumawat
15EJMCS015
Computer Science & Engineering
Jaipur Institute Engineering And Management, Jaipur
Counter Signed By:
Mr. Ram Choudhary
ACKNOWLEDGEMENT
Many people have contributed to the success of this. Although a
single sentence hardly suffices, I would like to thank Almighty God for
blessing me with grace.
I extend my sincere and heartfelt thanks to Mr. Ram Kumar
Choudhary, HOD of Department of Computer Science & Engineering,
for providing me the right ambience for carrying out this work. I am
profoundly indebted to my seminar guide & I express my immense
pleasure and thankfulness to all the teacher and staff of the
Department of Computer Science & Engineering for their
cooperation and support.
Last but not the least, I thanks all other, and especially my
class-mates who in one way or another helped me in the successful
completion of this work.
Nidhi Kumawat
4thyear, 7th sem
PREFACE
As we know that an Engineer has to serve an industry, for
that one must be aware of industrial environment, the
management problems and the way of working out their
solution at the industry.
After the completion of the course an Engineer must
have knowledge of interrelation between the theory and the
practical.
For this one must be the familiar with the practical
knowledge with the theory aspects.
CONTENTS
• ASP.NET
• FEATURES OF ASP.NET
• ASP.NET AS A WEB APPLICATION FRAMEWORK
• Design principle OF ASP.NET
• MICROSOFT VISUAL STUDIO
• C# PROGRAMMING LANGUAGE
• OOP’S CONCEPT
• STATIC WEBPAGES
• DYANMIC WEBPAGES
• WEBSERVER CONTROLS
• MASTER PAGES
• CONCLUSION
• REFRENCE
Introduction to ASP.NET
ASP.NET is part of the Microsoft .NET framework
ASP.NET is an effective and flexible technology for creating interactive and
dynamic web pages.
It is a convergence of two major Microsoft technologies:
• Active Server Pages (ASP)
• Active Server Pages is Microsoft’s server side scripting technology for
building dynamic web pages.
• .NET Framework
• The .NET Framework is a suite of technologies designed by Microsoft
where program development takes place.
Features of ASP.NET
• 1. Cross-platform & container support :-
With the introduction of .NET Core, you can now create ASP.NET
applications and deploy them to Windows, Linux, and macOS. Microsoft and
the community have put a huge effort into making Linux a first-class citizen for
running ASP.NET. Containers are eating the clouds these days. Microsoft Azure
even has support for deploying your application to containers and Kubernetes.
• 2. High performance :-
ASP.NET is touted as one of the fastest web application frameworks available.
TechEmpower has some cool benchmarks you can check out. The technology
that powered the ASP.NET integrated pipeline and IIS was roughly 15 years old.
It did everything and carried a lot of baggage with it. The new Kestrel web
server was redesigned from the ground up to take advantage of asynchronous
programming models, be much more lightweight, and fast!
3.Multiple environments and development mode :-
• Data designer
The data designer can be used to graphically edit database schemas, including typed
tables, primary and foreign keys and constraints. It can also be used to design queries
from the graphical view.
• Mapping designer
From Visual Studio 2008 onwards, the mapping designer is used by LINQ to SQL to
design the mapping between database schemas and the classes that encapsulate the
data. The new solution from ORM approach, ADO.NET Entity Framework, replaces and
improves the old technology.
One of my favourite features is the new environment feature. It allows you
to easily differentiate parts of your code for their behaviour in development,
staging, production, etc. There was no standard way to do this before
ASP.NET Core.
For example, it is used within your Start-up's file to help configure
your application. In this case, whether or not we want to show a more
detailed exception page for development only.
4. Dependency Injection :-
Sometimes you need to make a web application that will be deployed on to a desktop and not a
server running IIS. Our free ASP.NET profiler, Prefix, is a perfect example of this. Its front end is all
HTML that is loaded from an ASP.NET application running as a Windows Service.
You can create a self-hosted ASP.NET web application several different ways. In .NET 4.5 you
could accomplish it by using Owin, Nancy, or WCF. For Prefix, we use ASP.NET Web API with Owin
6. Action Filters :-
One of the great features of ASP.NET is the support for extensible filters. This allows you to
implement functionality that can be applied to an entire controller or action without modifying
the action itself.
Filters are used to specify caching, error handling, authorization, or any custom logic you would
like to implement.
7. Globalization and Localization :-
ASP.NET makes it easy to localize dates, numbers, and the text within your web application.
If you want your application to be used across the globe, localization will be very important
to you.
ASP.NET enables customizing your application for multiple languages via resource files.
These resource files are considered as the central repository where all texts are kept, and
web pages can read this resource file and get labels populated. There are two types of
resources:
• Local Resources – specific for a page (i.e., there will be local resource file for every page)
• Global Resources – common for the whole website (i.e., one resource file accessed by all
pages)
Microsoft.NET is a Framework :-
Microsoft .NET is a Framework which provides a common
platform to Execute or, Run the applications developed in various
programming languages.
Operating System
DESIGN PRINCIPLE ASP.NET
Interoperability :-
Because computer systems commonly require interaction between newer and older applications,
.NET Framework provides means to access functions implemented in newer and older programs
that execute outside.NET environment. Access to Component Object Model (COM) components
is provided in system. Runtime interopServices and system. Enterprise Services namespaces of
the framework. Access to other functions is via Platform Invocation Services (P/Invoke).
Access to .NET functions from native applications is via reverse P/Invoke function.
Language independence:-
.NET Framework introduces a Common Type System (CTS) that defines all possible data types
and programming constructs supported by CLR and how they may or may not interact with each
other conforming to CLI specification. Because of this feature, .NET Framework supports the
exchange of types and object instances between libraries and applications written using any
conforming .NET language.
Portability :-
Applications built on the .NET framework can be made to work on any Windows
platform. And now in recent times, Microsoft is also envisioning to make Microsoft
products work on other platforms, such as iOS and Linux.
Security :-
The .NET Framework has a good security mechanism. The inbuilt security mechanism
helps in both validation and verification of applications. Every application can explicitly
define their security mechanism. Each security mechanism is used to grant the user
access to the code or to the running program.
Memory Management :-
The Common Language runtime does all the work or memory management. The .Net
framework has all the capability to see those resources, which are not used by a running
program. It would then release those resources accordingly. This is done via a program
called the "Garbage Collector" which runs as part of the .Net framework. The garbage
collector runs at regular intervals and keeps on checking which system resources are not
utilized, and frees them accordingly.
Simplified Deployment :-
The .Net framework also have tools, which can be used to package applications built on
the .Net framework. These packages can then be distributed to client machines. The
packages would then automatically install the application.
MICROSOFT VISUAL STUDIO
• Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft.
It is used to develop computer programs, as well as websites, web apps, web services
and mobile apps. Visual Studio uses Microsoft software development platforms such as
Windows API, Windows Forms, Windows Presentation Foundation, Windows Store and
Microsoft Silverlight. It can produce both native code and managed code.
• Visual Studio includes a code editor supporting IntelliSense (the code completion
component) as well as code refactoring. The integrated debugger works both as a
source-level debugger and a machine-level debugger. Other built-in tools include a code
profiler, forms designer for building GUI applications, web designer, class designer, and
database schema designer. It accepts plug-ins that enhance the functionality at almost
every level—including adding support for source control systems (like Subversion and
Git) and adding new toolsets like editors and visual designers for domain-specific
languages or toolsets for other aspects of the software development lifecycle (like the
Team Foundation Server client: Team Explorer).
• Visual Studio supports 36 different programming languages and allows the code
editor and debugger to support (to varying degrees) nearly any programming
language, provided a language-specific service exists. Built-in languages include C,
C++, C++/CLI, Visual Basic .NET, C#, F#, JavaScript, Typescript, XML, XSLT, HTML, and
CSS. Support for other languages such as Python, Ruby, Node.js, and M among
others is available via plug-ins. Java (and J#) were supported in the past.
• The most basic edition of Visual Studio, the Community edition, is available free of
charge. The currently supported Visual Studio version is 2017. Microsoft announced
2019 on June 6, 2018, with its release timing to be shared "in the coming months,"
promising "to deliver ... quickly and iteratively."
FEATURES OF MICRPSOFT VISUAL STUDIO
Code Editor :-
Like any other IDE, it includes a code editor that supports syntax highlighting and code
completion using IntelliSense for variables, functions, methods, loops, and LINQ queries.
IntelliSense is supported for the included languages, as well as for XML, Cascading Style
Sheets, and JavaScript when developing web sites and web applications. Autocomplete
suggestions appear in a modeless list box over the code editor window, in proximity of the
editing cursor. In Visual Studio 2008 onwards, it can be made temporarily semi-transparent
to see the code obstructed by it. The code editor is used for all supported languages.
Debugger :-
The Visual Studio code editor also supports setting bookmarks in code for quick navigation.
Other navigational aids include collapsing code blocks and incremental search, in addition to
normal text search and regex search.
The code editor also includes a multi-item clipboard and a task list. The code editor supports
code snippets, which are saved templates for repetitive code and can be inserted into code
and customized for the project being worked on. A management tool for code snippets is
built in as well. These tools are surfaced as floating windows which can be set to
automatically hide when unused or docked to the side of the screen. The Visual Studio code
editor also supports code refactoring including parameter reordering, variable and method
renaming, interface extraction, and encapsulation of class members inside properties, among
others.
Visual Studio includes a debugger that works both as a source-level debugger and as a
machine-level debugger. It works with both managed code as well as native code and can be
used for debugging applications written in any language supported by Visual Studio.
The debugger allows setting breakpoints (which allow execution to be stopped temporarily at
a certain position) and watches (which monitor the values of variables as the execution
progresses).
When debugging, if the mouse pointer hovers over any variable, its current value is
displayed in a tooltip ("data tooltips"), where it can also be modified if desired. During
coding, the Visual Studio debugger lets certain functions be invoked manually from the
Immediate tool window. The parameters to the method are supplied at the Immediate
window.
Designer :-
Visual Studio includes a host of visual designers to aid in the development of applications.
These tools include:
• Windows Forms Designer
The Windows Forms designer is used to build GUI applications using Windows Forms.
Layout can be controlled by housing the controls inside other containers or locking
them to the side of the form. Controls that display data (like textbox, list box and grid
view) can be bound to data sources like databases or queries.
• WPF Designer
The WPF designer, codenamed Cider, was introduced with Visual Studio 2008. Like the
Windows Forms designer it supports the drag and drop metaphor. It is used to author user
interface targeting Windows Presentation Foundation. It supports all WPF functionality
including data binding and automatic layout management.
• Data designer
The data designer can be used to graphically edit database schemas, including typed tables,
primary and foreign keys and constraints. It can also be used to design queries from the
graphical view.
• Mapping designer
From Visual Studio 2008 onwards, the mapping designer is used by LINQ to SQL to design the
mapping between database schemas and the classes that encapsulate the data. The new
solution from ORM approach, ADO.NET Entity Framework, replaces and improves the old
technology.
C# PRORAMMING LANGUAGE
• C# is pronounced “see sharp”.
• C# is an object oriented programming language and part of .Net family from
Microsoft.
• C# is very similar to C++ and JAVA.
• C# is developed by Microsoft and work only on the Windows platform.
• C# is simple, modern, type safe and object oriented.
• Features of C# includes Portability, Interfaces, Meta programming and functions,
Property, Namespace, Memory access etc.
C# provides full support for object-oriented programming including
encapsulation, inheritance, and polymorphism.
Encapsulation means that a group of related properties, methods, and
other members are treated as a single unit or object.
Inheritance describes the ability to create new classes based on an existing
class.
Polymorphism means that you can have multiple classes that can be used
interchangeably, even though each class implements the same properties
or methods in different ways.
USE :-
Abstraction is the process by which a developer hides everything other than the
relevant data about an object in order to simplify and increase efficiency.
• A light version of classes in C# is called structures. These are beneficial when you
want to create a large array of objects but don’t want to overwhelm your available
memory. A class is made up of three things:
- A name
- Operations
- Attributes
EXAMPLE :-
using System;
namespace oops
{
//class definition
public class SimpleHelloWorld
{
//Entry point of the program
static void Main(string[] args)
{
//print Hello world"
Console.WriteLine("Hello World!");
}
}
}
STATIC WEBPAGES
Web Page Static web page :-
• This type of web page consists HTML code
typed directly into text or a web page
editor.
• It is saved as an .htm or .html file.
Static Dynamic
• These web pages do not utilize any database or any other technology
that dynamically builds up pages or content at runtime based on their
visitors input.
29
How Are Static Web Pages Served ?
WEB SERVER
3.Web Server
1.Author locates.html file
writes HTML
2.Client requests
the web page
5.Browser processes
HTML and displays
page
CLIENT
30
Dynamic web page
• Dynamic Web sites provide its visitors to modify the content of the
web page based on their input.
• They utilize databases and other mechanisms that enable to
– identify their visitors
– present them with customized greeting messages
– restructure the content according to user input etc..
• Examples:
– Online shopping stores,
– search engines
– email
– chat, community portals etc.
31
• Dynamic Web sites make use of “server-side technology”.
• Server-side technologies add an extra layer to the static web page
that enables the Web Server to generate HTML on the fly.
• The web server will first
a) interpret the server-side code present in web pages,
b) generate the appropriate HTML and then
c) send the response to the web browser.
WEBSERVER CONTROLS
Controls are small building blocks of the graphical user interface, which include text boxes,
buttons, check boxes, list boxes, labels, and numerous other tools. Using these tools, the users
can enter data, make selections and indicate their preferences.
Controls are also used for structural jobs, like validation, data access, security, creating master
pages, and data manipulation.
•Validation controls - These are used to validate user input and they
work by running client-side script.
•Data view controls - These are various lists and tables, which can bind
to data from data sources for displaying.
•Navigation controls - These controls help in navigation. For example, menus, tree
view etc.
•Rich controls - These controls implement special features. For example, Ad Rotator,
File Upload, and Calendar control.
Master pages allow you to create a consistent look and behavior for all the pages (or group
of pages) in your web application.
A master page provides a template for other pages, with shared layout and functionality.
The master page defines placeholders for the content, which can be overridden by content
pages. The output result is a combination of the master page and the content page.
The content pages contain the content you want to display.
When users request the content page, ASP.NET merges the pages to produce output that
combines the layout of the master page with the content of the content page.
• Note: The master page can also contain code, allowing dynamic content.
Master Page Example :-
The master page above is a normal HTML page designed as a template for other pages.
The @ Master directive defines it as a master page.
The master page contains a placeholder tag <asp:ContentPlaceHolder> for individual
content.
The id="CPH1" attribute identifies the placeholder, allowing many placeholders in the same
master page.
This master page was saved with the name "master1.master".
CONCLUSION
A technician needs to have not just theoretical but practical as well and so every students is
supposed to undergo practical session after 2nd year where I have imbibed the knowledge
about coding, designing and software with economical issues related to it.
During our 30 days training session we are acquainted with the .NET coding and
designing. As we mentioned during our discussion of people-oriented software, the future of
computing will undoubtedly involve getting machines to talk one another over the internet.
The Internet is a ubiquitous network to which source of people have access.
Until now, there has not really been a way to use the Internet as a software platform.
However, the technology is now in place to make that happen, and ASP.NET makes it that
much easier to manage Web programming. ASP.NET keeps all the good features of classic ASP
(in process performance, a well-established syntax, the ability to add executable blocks to
your Web pages) and improves on them (e.g., by providing a more granular HTTP request
handling mode, providing a page into classes and making those classes available through the
CLR type system). ASP.NET will undoubtedly be the tool of choice for most Web developers
for the next five to ten years.
REFERENCE
1. “ISO/IEC 23270:2006 – Information technology – Programming Language – C#”.
2. “What’s New in Visual Studio 2005”, MSDN, Microsoft, Retrieved 1 September 2014.
3. Hands on with ASP. Net MVC – Covering MVC 6 By- Rahul Sahay.