Maintaining the state of a Web application is very important when passing the data between multiple requests. In an ASP.NET application, we use different techniques or ways to pass the data from one page to other. ASP.NET provides Session, ViewState, QueryString, Cross Page Posting, and so forth. Most of the time, developers find difficulties understanding and using ViewData, ViewBag, and TempData in an ASP.NET MVC application. In this article, I will explain ViewData, ViewBag, and TempData with examples, and show you how to pass data in an MVC application in different scenarios.
Subscribe to:
Post Comments (Atom)
Mocking API Responses in Azure API Management Portal
A mock API imitates a real API call by providing a realistic JSON or XML response to the requester. Mock APIs can be designed on a developer...
-
LiteDB is a simple, serverless, fast and lightweight, embedded .NET document database written in .NET C# managed code. It's completely...
-
Microsoft Visual Studio offers architecture and modeling tools to design and model your application. These tools are available in the Ente...
-
Git is the most popular open-source, Cloud-based version control system. Git was started by Linus Trovalds (Founder of Linux) of in 2005; ...
No comments:
Post a Comment