Industrial Training

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 14

2023

INDUSTRIAL TRAINING
2023

TRAINER – MR. AVIRAJ


NAYAKAWADI
ABOUT US COMPANY – VISHWAMET
TECHNOLOGIES PVT. LTD

MENTOR – PROF. R. S. MAWALE

MEMBERS : 1. PRITI NAIK


2. SAMIDHA KATKAR
3. RUTUJA KHORATE
4. JANHAVI JAGTAP

Industrial training 2
2023

MODEL-VIEW-CONTROLLER(MVC)
INTRODUCTION
3
MVC AT A GLANCE 2023

MODEL VIEW
Update Update

User
Notify
Action
CONTROLLE
R

4
INTRODUCTION TO MVC 2023

WHAT IS MVC?
MVC, which stands for Model-View-Controller, is a software architectural pattern used in the design and
development of applications, especially web and desktop applications. MVC separates an application into three
interconnected components, each with a specific responsibility:
Model: The Model represents the core of the application's data and business logic. It encapsulates the data and
defines the rules for manipulating that data. In essence, it's responsible for managing the application's state and
ensuring data consistency. The Model doesn't directly interact with the user interface or presentation layer.

View: The View is responsible for presenting the data from the Model to the user. It represents the user interface
elements and displays the information to the user in a format that is easy to understand and interact with. Views
are typically passive and do not contain business logic. They only display data and respond to user input.

Controller: The Controller acts as an intermediary between the Model and the View. It handles user input and
translates it into actions that affect the Model or the View. Controllers contain the application's business logic, and
they orchestrate the flow of data between the Model and the View. They are responsible for updating the Model in
response to user input and for updating the View to reflect changes in the Model.
5
DISTRIBUTION OF RESPONSIBILITIES IN 2023

MVC
The graph's purpose is to visually represent the balanced distribution of responsibilities that MVC promotes
among its components. The longer Model bar signifies the central role of data and business logic, the shorter View
bar represents the focus on presentation, and the Controller bar represents the intermediary role in managing user
interactions.
Model: 80

Represents the Model component of MVC, 70


responsible for data and business logic.
60
View:
50
Represents the View component of MVC,
responsible for the user interface. 40

Controller: 30

Represents the Controller component of MVC, 20


responsible for handling user input and managing
the flow of data. 10

Presentation Title 0 6
MODEL VIEW CONTROLLER
C# AND MVC: DYNAMIC DUO
2023

C# is a popular programming language developed by Microsoft and is widely used in the development of
backend components, including web applications following the Model-View-Controller (MVC)
architectural pattern. Here's an overview of C# in the context of MVC:
• C# Language Features: • Development Ecosystem:
• Strongly Typed: C# is a statically typed language, C# has a rich development ecosystem, including powerful
which means that variable types are checked at integrated development environments (IDEs) like Visual
Studio, which provides a wide range of tools and features for
compile time, providing robust type safety. C# development, including code debugging, profiling, and
• Object-Oriented: C# is an object-oriented language, version control integration.
allowing developers to use classes, inheritance, and • Community and Libraries:
polymorphism to organize and structure code. C# benefits from a large and active developer community,
making it easy to find resources, tutorials, and support online.
• Memory Management: C# uses a garbage collector Additionally, the .NET ecosystem provides a vast library of
to automatically manage memory, making it easier for pre-built components and packages available via NuGet,
developers to avoid memory leaks and related issues. which can significantly accelerate development.
• ASP.NET MVC: • Cross-Platform Development:
With the introduction of .NET Core (now known as .NET 5
• ASP.NET MVC is a popular web framework for
and later), C# has become more versatile, allowing developers
building web applications using C#. It follows the to build cross-platform applications, including web
MVC architectural pattern, and C# is the primary applications, using the same language and framework.
language used for developing server-side components • 7
in ASP.NET MVC applications.
CORE OPERATIONS IN WEB DEVELOPMENT 2023

I. VIEW OPERATIONS
Rendering UI: Generating and rendering the user interface (UI) based on data from the
Model. This often involves creating HTML, CSS, and JavaScript to display content to the
user.
Data Presentation: Formatting and presenting data to the user in a visually appealing and
user-friendly manner. This may include displaying lists, tables, charts, or graphical elements.
Template Rendering: Using templates or template engines to dynamically insert data into
predefined layouts, ensuring consistency in presentation.
User Interaction: Capturing user input through forms, buttons, and other UI elements.
Handling user actions, such as clicks and form submissions.
Client-Side Validation: Performing client-side validation to provide immediate feedback to
users about the validity of their input before sending it to the server.
Presentation Title 8
CORE OPERATIONS IN WEB DEVELOPMENT 2023

II. CONTROLLER OPERATION


Routing: Handling URL routing and mapping incoming requests to specific controller
actions or methods based on the URL structure.
Request Handling: Receiving and processing user requests. Retrieving data from the
Model, preparing it for display, and selecting the appropriate View for rendering.
Business Logic Coordination: Coordinating the flow of data and business logic between
the Model and the View. Ensuring that the correct data is presented to the user.
Authentication and Authorization: Managing user authentication and authorization,
determining user roles and permissions.
Error Handling: Handling errors and exceptions, providing appropriate error messages and
responses when issues occur.
Session Management: Managing user sessions to maintain user state and track user
interactions
Presentation Title in web applications. 9
CORE OPERATIONS IN WEB DEVELOPMENT 2023

III. MODEL OPERATIONS


Data Management: The Model component is responsible for managing application data.
This includes tasks such as retrieving data from databases, processing data, and maintaining
data integrity.
Business Logic: Implementing the business logic of the application, which includes rules,
calculations, and algorithms necessary for processing data and performing operations.
Data Validation: Validating user input and data from various sources to ensure accuracy,
consistency, and security.
Database Interaction: Handling interactions with the database, including CRUD operations
(Create, Read, Update, Delete) and working with database entities.

Presentation Title 10
CORE OPERATIONS IN WEB DEVELOPMENT 2023

V. AUTHENTICATION AND
IV. NAVIGATION AND ROUTING AUTHORIZATION

Defining routes and handling navigation Implementing user authentication


within the application, ensuring users can mechanisms to verify user identities and
move between different sections and control access to protected resources. This
pages. includes managing user roles and
permissions.

Presentation Title 11
SOFTWARE
REQUIREMENT 2023

SQL SERVER
VISUAL STUDIO MANAGEMENT C#
2019
robust toolset for coding, debugging, STUDIO 2019and administering
managing, developing, programming language used to develop the server-
testing, and deploying web projects. SQL Server databases, streamlining side logic and backend functionality of web
database operations and maintenance. applications, providing a structured and efficient
way to build dynamic and interactive websites.

HTML CSS BOOTSTRAP


structure and render the user interface, style and format HTML elements, providing pre-designed, responsive
allowing web developers to create enhancing the visual design and user components and styles, accelerating the
visually appealing and interactive web experience of web applications. creation of visually appealing web
pages. interfaces..
Presentation Title 12
CONCLUSION
2023

"In conclusion, we've explored the core operations that drive web development using
the Model-View-Controller (MVC) architectural pattern with C#. These operations
encompass data management, user interface rendering, business logic coordination,
authentication, and more. By embracing MVC and harnessing the power of C#, we
can build dynamic, scalable, and secure web applications that deliver exceptional
user experiences. The synergy between MVC's structured architecture and C#'s
robust capabilities empowers developers to create modern, responsive, and feature-
rich web applications that meet the evolving demands of today's digital world. As we
continue to advance in web development, understanding these core operations
becomes increasingly vital, serving as the foundation upon which we construct the
digital landscapes of tomorrow. Thank you for your attention and engagement
throughout this presentation."

Presentation Title 13
2023

THANK YOU!
JANHAVI VIKRANT JAGTAP (TY IT)

You might also like