“HttpSessionStateBase” does not contain a definition for “SetString” and no accessible extension method

后端 未结 0 738
逝去的感伤
逝去的感伤 2020-12-11 10:51

I try to pass data from one view to another in ASP.NET MVC. So I try to use HttpContext.Session.SetString("Username", model.UserName.ToString());.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题