i
Web Application Fundamentals
Using Internet Information Services
Web Forms
ASP.NET MVC
Web Services
ASP.NET Features
Request/Response Programming
HttpRequest Class
HTTP Collections
HttpResponse Class
Redirection
HttpUtility Class
Using Visual Web Developer
Visual Studio Forms Designer
Using Components
Shadow Copying
Using the Global.asax File
Data Binding
Different Types Of Caching
How to use Object cache
Optimizing Your ASP.NET Application
What Is Caching [Storage]
Forms Authentication
Windows Authentication
ASP.NET Security Fundamentals
Data Source Controls
SqlDataSource
SiteMapDataSource
The AccessDataSource Control
ObjectDataSource
Connection String Storage
GridView
DetailsView
FormView
ListView
DataPager
Entity Data Model
EntityDataSource
Remote Method Calls
Ajax Control Toolkit
Ajax Client Library
Rich Client Applications
Ajax [Asynchronous JavaScript and XML]
ScriptManager
UpdatePanel
Model-View-Controller Pattern
ASP.NET MVC versus Web Forms
ASP.NET MVC Projects in Visual Studio
Action Methods in MVC
Routing in MVC
Strongly-Typed Views [Add images here from the visual studio]
Model Binding
Validation
ADO.NET [ActiveX Data Object]
ASP.NET Data Providers
Connections
Commands
DataReaders and Connected Access
DataSets and Disconnected Access
In MVC has provided the different ways to pass data to a controller to view and from View to controller by using the videdata, viewbag, and tempdata. Those ways are the loosely-typed views that send the data. Strongly typed means passing the model object as a parameter to the View. As shown in below example:
public class HomeController: Controller { public ActionResult Details() { Employee employeeBL = new Employee(); Employee employee = employeeBL.GetEmployeeDetails(101); ViewBag.Header = "Employee Details"; return View(employee); } }
|
In above example we are passing object as parameter to View. Here in view side (Details.cshtml) we need to specify the "@model" directive for making it as strongly typed view.
@model StrognlyTypedDemo.Models.Employee
cshtml files code will look somewhat like below:
Employee Details
Employee ID: | @Model.EmployeeId |
Name: | @Model.Name |
|
|
In the above example, "EmployeeId" and "Name" are both the properties of the Employee class.
Don't miss out!