How to check TempData value in my view after a form post?

后端 未结 3 784
闹比i
闹比i 2020-12-31 04:27

I fill my TempData from a FormCollection and then I try to check the value of my TempData in my view with MVC 4 but my if statement is

3条回答
  •  粉色の甜心
    2020-12-31 05:04

    Before starting any block of code in MVC View always start using @{ } then write any line of code and terminate with semicolon(;)

提交回复
热议问题