ASP.NET MVC Tutorial for Beginners
ASP.NET MVC stands for ASP.NET Model View Controller design pattern. MVC was first invented by Trygve Reenskaug and was named as “Thing Model View Editor” pattern originally. Slowly it became popular and renamed as “Model View Controller”.
ASP.NET MVC was created by Scott Guthrie of Microsoft in 2007 based on the MVC framework implemented in different framework like Ruby on Rails, Spring etc. ASP.NET MVC (Model View Controller) is an architectural design pattern that separates an application into three main components
ASP.NET MVC stands for ASP.NET Model View Controller design pattern. MVC was first invented by Trygve Reenskaug and was named as “Thing Model View Editor” pattern originally. Slowly it became popular and renamed as “Model View Controller”.
ASP.NET MVC was created by Scott Guthrie of Microsoft in 2007 based on the MVC framework implemented in different framework like Ruby on Rails, Spring etc. ASP.NET MVC (Model View Controller) is an architectural design pattern that separates an application into three main components
- Model
- View and
- Controller
ASP.NET MVC is not the replacement of traditional ASP.NET Web form but it’s an alternative. The ASP.NET MVC App is highly testable application than traditional ASP.NET Web form applications.
Use left side course content to learn more about ASP.NET MVC.
Total list of posts under ASP.NET MVC
- Create a new ASP.NET MVC application
- Naming conventions in ASP.NET MVC
- Project structure
- Create a view
- Create new controller
- Create new model
- Scaffolding
- Razor & benefit of Razor
- Declare a variable
- Comment in Razor view
- For each loop in Razor
- If condition in Razor view engine
- Switch case conditional operator
- variable data inside URL
- Mathematical operation in Razor view
- Writing text in between C# code block
- Custom helper method
- Namespace in Razor view
- Calling external method
- specifying a model in razor view
- Getting ViewBag / ViewData
- New read only view
- Form based Razor view
- Model based Razor view
- Element in ASP.NET MVC view
- Text box in ASP.NET MVC view
- Radio button in Razor view
- Check box in razor view
- Create a drop down in razor view
- Listbox in razor view
- Model attributes
- Create a model based on database table
- Auto increment property in Model
- Mandatory model field
- Validating string length in Model property
- Model field for a particular data type
- Custom label to Model property
- Mapping model property to database field
- Mapping model to existing table in database
- Primary key and Foreign key relationship in Model
- Views of model having primary and foreign key relationship
- TextArea with Html.EditorFor
- List data using ViewModel
- Access form data into controller using Request
- Access form data into controller using FormCollection
- Access form data into controller using parameters
- Rename action method
- Rename a controller
- Create a partial view
- Render/call a partial view from a content page (View)
- Returning a partial view from controller action method
- Nested partial view
- Call a partial view that accepts Model as parameter
- Redirect user to another page from controller action method
- Redirect to another action method
- Redirect user to another route url
- Pass data from one action method to another
- Pass data from action method to View
- Access data from querystring to action method
- Return view from action method
- Return model to view from action method
- Output string content from action method
- JSON result
- Returning JavaScript from action method
- Returning file content from action method
- Define new route in ASP.NET MVC
- Catchall in ASP.NET MVC route
- Retrieving catchall segments in action method
- Browser constraint check in route
- Expose action method by certain URL (attribute routing)
- Custom route handler to redirect user to specific page
- Get url of action method
- Create hyperlink based on action method
- Avoid Length querystring in URL generated by ActionLink
- Create URL based on Route defined
- Create forms authentication in ASP.NET MVC
- Implementing authorization
- Securing controller action methods
- Mark action method public in secure controller
- Passing error to view from controller action
- Redirecting to default error page from controller action
- Redirecting user to error specific page
- Prevent Cross-Site Request Forgery (CSRF) attack
- Getting EntityValidationErrors
- Custom validation in ASP.NET MVC
- Accepting HTML or script content to the form
- Remote validation on particular model property
- Validate url in routing level itself
- Fluent validation framework in ASP.NET MVC
- Store user specific data into session
- Time out for session object
- Cache output of action method
- Creating output cache profile
- Cache partial view output
- Store data into Cache in ASP.NET MVC
- List the data from database
- Insert record into database
- Update record into database
- Delete record from database
- File upload
- Upload multiple files on server
- Pagination of records
- Sort & paginate records
- Search based on keyword
- Listing records in Grid
- Insert record using transactions
- Insert record using Ajax
- Search database using Ajax
- List records using JSON
- Create asynchronous controller and action methods
- Bundles in ASP.NET MVC
- Create and use ScriptBundle
- Create & use CSS bundle
- ScriptBundle / StyleBundle in custom format
- What is optimization?
- Optimize JavaScript and CSS file
- Create ASP.NET Web API Controller
- Insert record using Web API
- List records using Web API
- Show single using Web API
- Delete record using Web API
- Update record using Web API
- Consuming external Web API in ASP.NET MVC
- Caching in Web API
- Export data into MS Excel from MVC
- Export data into MS Word from MVC
- Export data into XML from MVC
- Create new ASP.NET MVC Test project
- Add new unit test class
- Create new test case method
- Test mvc controller method for correct view
- Debug unit test case / method
- Test controller method that access data from database
- Create normal method in Test class
- Controller Action Invoker
- Action Invoker
0 comments:
Post a Comment