ASP.NET MVC TempData Is Really RedirectData(blogs.teamb.com)

submitted by CraigStuntzCraigStuntz(438) 3 years, 4 months ago

Many people seem to be confused about the TempData feature in ASP.NET MVC. TempData behaves like the ViewData dictionary, except that it persists until the next request from the same browser. Because of this, TempData should only be used when you know exactly what the next request is going to be. Realistically, this means that you should only use TempData immediately before you redirect !

add a comment |category: |Views: 49

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story