我正在尝试使用TempData在剃须刀页面中执行OnPost操作后返回消息,但发布完成后没有任何显示,并且TempData为空
请参见以下内容:
import Control.Monad
readLn = do
putStrLn "Enter how many numbers:" -- clearer
num<-getLine
numbers<- replicateM num action
putStrLn("Enter a number: ")
numberString <- getLine
return (read numberString :: Int)
-- here we have numbers :: [Int]
查看:
public async Task<IActionResult> OnPostEdit(int id)
{ .....
.....
TempData["MSG"] = "done";
return RedirectToPage("./Index");
}
有帮助吗?