iamkirankumaryadav / .NET

ASP.NET & C# Basics and OOP's

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Navigate to SQL

What is MVC ?

  • MVC stands for Model ( Data ) + View ( UI ) + Controller ( Brain )
  • The core concept is to separate the business logic, user interface and data model from each other.
  • Model extracts data from a database like cloud, local storage, API's
  • View represents the UI of app, it shows the data model and takes inputs from the users.
  • Controller consist of business 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 with view on which data is displayed and provide input with controller through view
  • Controller is like brain it manipulates the data for user or take data from model to work.
  • And after work is completed again it is provided back to view which shows desired data to users.

Can we use Multiple web.config file ? : Yes

  • We have one main configuration file that is Web.Config
  • Then we have two more configuration files App.Config and Database.Config
  • In App.Config we define all the application level settings like Protocols, Requests and Responses
  • In Database.Config we define all the database level settings like Data Source and Passwords
<appSettings configSource="app.config">
</appSettings>
<connectionStrings configSource="database.config">
</connectionStrings>

ASP.NET Full Stack Developer

  • Front End : HTML, CSS, Bootstrap (CSS library), JavaScript and jQuery (JavaScript library)
  • Back End : C# programming language
  • Framework : ASP.NET
  • Database : SQL

MVC Authentication ( Username and Password )

  • Authentication is a process to ensure and confirm a user’s identity.
  • It ensures that whether the user is a registered user or not to access particular data or web pages.
  • It is like a process to validate someone.

MVC Authorization ( Permission )

  • Authorization helps to determine whether the user has permission to access a particular resource or database.

Authentication happens before Authorization

Authentication Types

  1. Forms Authentication : Provide credentials through form ( Username and Password )
  2. Window Authentication : IIS Authentication
  3. Password Authentication : Centralized authentication service provided by Microsoft Autheticator

About

ASP.NET & C# Basics and OOP's