Programming Tips πŸ’‘
51.6K subscribers
67 photos
10 videos
30 files
354 links
Programming & AI:
Tips πŸ’‘
Articles πŸ“•
Resources πŸ‘Ύ
Design Patterns πŸ’Ž
Software Principles βœ…

πŸ‡³πŸ‡± Contact: @MoienTajik

🎯 Buy ads: https://telega.io/c/ProgrammingTip
Download Telegram
Do You Know Where Your TempData is ❓

TempData is a bucket where you can dump data that is only needed for the following request. πŸ“¦

That is, anything you put into TempData is discarded after the next request completes. ❎

This is useful for one-time messages, such as form validation errors❗️

If you need something more persistent, Session is likely what you’re looking for. πŸ“₯

By default, TempData is stored in the session.

πŸ”ΉπŸ”ΈπŸ”ΉπŸ”Έ

In this article you see how TempData works and how you can use another provider instead of Session to store the data. πŸŒ€

https://t.me/pgimg/20

[ Article ] : http://bit.do/tmpdt

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #TempData #Deep
@ProgrammingTip
MVC TempData – Peek vs Keep πŸ€™πŸ»

Most of the MVC developer knows that TempData is used to preserve data for a single request but reality is that TempData can pass data for next request also. πŸ€·πŸ»β€β™‚οΈ

In this article we will discuss how to persist data with TempData using Keep and Peek method.

As well we will also see the difference between Keep and Peek method. πŸ€”

https://t.me/pgimg/23

[ Article ] : http://bit.do/tmpkp

γ€°γ€°γ€°γ€°γ€°γ€°
#AspMvc #TempData
@ProgrammingTip