What is MVC ?
MVC
stands for Model (Data
) + View (UI
) + Controller (Brain
)- The
core concept
is to separate thebusiness logic
,user interface
anddata model
from each other. Model
extracts data from a database likecloud
,local storage
,API's
View
represents theUI
of app, it shows the data model and takes inputs from the users.Controller
consist ofbusiness logics
, control and decide what will be displayed to user.MVC
helps to make work easy, structured and organized.- So if something is changed in one part of the project, it will not affect other parts of the project.
- The
user
interacts withview
on which data is displayed and provide input withcontroller
throughview
Controller
is like brain it manipulates the data for user or take data frommodel
to work.- And after work is completed again it is provided back to
view
which shows desired data to users.
Yes
Can we use Multiple web.config file ? : - We have one main configuration file that is
Web.Config
- Then we have two more configuration files
App.Config
andDatabase.Config
- In
App.Config
we define all theapplication level
settings likeProtocols
,Requests
andResponses
- In
Database.Config
we define all thedatabase level
settings likeData Source
andPasswords
<appSettings configSource="app.config">
</appSettings>
<connectionStrings configSource="database.config">
</connectionStrings>
ASP.NET Full Stack Developer
Front End
:HTML
,CSS
,Bootstrap
(CSS library),JavaScript
andjQuery
(JavaScript library)Back End
:C#
programming languageFramework
:ASP.NET
Database
:SQL
Authentication
( Username and Password )
MVC Authentication
is a process toensure
andconfirm
a user’s identity.- It ensures that whether the user is a
registered user
or not toaccess
particular data or web pages. - It is like a process to
validate
someone.
Authorization
( Permission )
MVC Authorization
helps to determine whether the user haspermission
toaccess
a particular resource or database.
Authentication
happens before Authorization
Authentication Types
Forms
Authentication : Providecredentials
through form ( Username and Password )Window
Authentication :IIS
AuthenticationPassword
Authentication : Centralized authentication service provided byMicrosoft Autheticator