Learn About ASP.NET MVC
ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and that gives you full control over markup for enjoyable, agile development.
Web Pages, MVC (Model View Controller), and Web Forms.
Web Applications with 3 logic layers:
The business layer (Model logic)
The display layer (View logic)
The input control (Controller logic)
|
First Select - New Project
Next - Select FrameWork 4 or 4.5 - Select Asp.Net MVC Web Application 3 or 4 - Enter the Project Name - Click OK Button
Next - Open Window Form - Select - Internet Application
Next - Select - Razor View Engine
Next - Open the HomeController.cs Below like that
Next - Right Click App-Data - Add- New Item
Add - SQL Server Database - Add
Added The Database To App-Data Folder
Next - Add the New Table Name - Select Tables - Right Click - Add New Table
Create table Name (register)
After Filling Column name - Select Update Button Click
Next - Select - Solution Explorer - Right Click - Project Name(MVC REGISTRATION) - Add - New Item
Add the ADO.NET Entity Model - Enter model - Name- OK Button Click
Next - Create Model.edmx diagram1 (register table & Column Fields)
Next -Add - the using System.ComponentModel.DataAnnotations; for Validation
Next - Add the Validation for All register table Column fields below like that
Open window - Controller Name - Default1Controller - Template - Empty MVC Controller - Add Button click
Next - Select Build - Right click - Select Build Solution - Build the Controller
Next - Right Click - Coding Page - Public Actionresult Register() - Add View Click
Open - New Window - Select - View(Register)-View Engine(Razor(CSHTML))- Select Strongly typed View - Model Class(register(MVC_Registration)) -Scaffold Tempalte(Empty) - Add Button Click
Default1 View Name
Next - Add - the View Name / Controller Name(Default1/register)
Next - open the Generated Design Page
All - Validation Error Message Popup Shown below
Next - Password Strength 15 Given Validation Popup Show
Registered Successfully
Next - Enter - Second Values - Properly - Click Create Button
Registered Successfully
0 comments:
Post a Comment