Sunday, 6 September 2020
Saturday, 5 September 2020
Create MVC 5 Application and Run Application
23:50 Amit Kumar
Hello Friends, Here we will learn how to create default Asp.Net MVC application and run your application. So please follow the following step to creating a project which is easy. I will not take screenshot, it is only time waste. I hope you can create project to use the following steps.
Create Project
- Launch Visual Studio
- Go to File New Project.Make New Project
- Select Template Visual C# Web in left panel and then select ASP.NET Web Application (.NET Framework) in middle Panel. Give Project Name and click OK.
- In the next window, select MVC Template and change Authentication to No Authentication. Click OK.
- Your ASP.NET MVC 5 Project is open now.
Build your Project
- Build >> Build Solution(CTRL + SHIFT + B)
Debug, Compile or Run Your Project
- Debug >> Start Debugging(F5)
Project Without Debugging
- CTRL + F5
Break Execution or Debugging
- SHIFT + F5
Thanks for reading this blog. We will learn use of ASP.NET MVC 5 Folder Structure.
Sunday, 30 August 2020
How to install Visual Studio 2017
16:16 Amit Kumar
Hello Friends, Here we will learn how to install visual studio 2017. Visual Studio has a complete set of development kit that allows you to develop Web-based apps, Windows Apps, Mobile Apps, Services, and other components in various languages like C#, Visual C++, Visual Basic, F#, etc.
Here we are going to install visual studio 2017 but we can use MVC 5 in Visual Studio 2013/2015.
System Requirement:
- OS: Windows 7 (Service Pack 1) or higher (Windows 10 Recommended)
- Processor: 1.8GHz or higher (Dual Core Recommended)
- RAM: 2GB (4GB Recommended) Hard Disk: Minimum 20GB
Download:
Downloading Page: https://visualstudio.microsoft.com/vs/older-downloads/
Installation:
Step 1: Double click on downloaded Installer vs_Community.exe
Step 2: Click the Continue button to accept Microsoft License.
Step 3: Select workload, which you want.
Step 4: After selecting workloads click Install button.
Step 5: In the next screen, you will see the installation progress bar.
Step 6: Click Launch button to open Visual Studio 2017.
Thanks for reading this blog. We will learn how to create MVC 5 application.
Introduction to MVC and Asp.Net MVC 5
11:15 Amit Kumar
MVC |
To learn MVC we need to understand coupling, without couplings we can't understand MVC so see to following two types of coupling
- Tightly Coupled
- Loosely Coupled
Drawback
- Reduces the flexibility of the code.
- Re-usability of the code.
Example
- Asp.Net is web forms is tightly coupled.
Loosely Coupled: It means reducing the dependencies of a class. we can make a separate class that uses different classes directly.
Real-Life Example |
MVC stands for Model View Controller. It has different three logins. Now we will try to learn Model, View, Controller in detail.
Model:
The model is the c# class.
Perform the database operation like - update, delete, etc.
Business Logic.
View:
The view is the graphic user interface in which the user can interact with system ex- Html, CSS, bootstrap.
Presentation Login.
Controller:
Controllers are classes in c# which handles browser requests.
Mediator Between Model and View.
Get the data from Database.
What is Asp.Net MVC?
ASP.NET MVC is a lightweight, fast, secure, and highly testable framework that integrates existing ASP.NET features.
Asp.net MVC is based on MVC design pattern.
Asp.net MVC is used for web development.
Benefits:
- Enables the full control over the rendered HTML.
- Provides clean separation of concerns(SoC).
- Enables Test Driven Development (TDD).
- Easy integration with JavaScript frameworks.
- Following the design of stateless nature of the web.
- RESTful urls that enables SEO.
- No ViewState and PostBack events.
Thanks for reading this blog. We will learn how to set up the environment for Asp.Net MVC 5.
Popular Posts
-
Hi guys, i got this error but i have solved this issue so i am sharing with you our solution with you . I run add-migration then suddenly i ...
-
In this article we will explain how to use ( + ) Addition Operator in C# using System; using System.Collections.Generic; using Sy...
-
Having a contact page on your blog is highly important. It is how visitors, brands and companies can reach you and it's something that...
-
In this article I will explain How to insert Data in Asp.net to sql with date of birth. We will use CalendarExtender from AjaxToolkits, Te...
-
In this article we will explain How to bind ComboBox in window form asp.net in C#. ComboBox is a control of window form application. It is ...
-
Variable Variable is a named storage location that holds a value of a particular data type. It is used to store and manipulate data during ...
-
Here I will explain How to add delete button on dataGridView window form in asp.net. This is very important topic for dataGridView. Fi...
-
We will learn about sizeof() with the help of the example. Here sizeof() is an operator in c#. It used to obtain the size of a data type in...
-
In this article, we are going to create Web API using .Net 6 and Asp.Net Core and also implement JWT Authentication. Right click on "T...
-
In this article we will explain how to use ( % ) Modulus Operator in C#. Modulus find the remainder. using System; using System.Co...