我是使用項(xiàng)目創(chuàng)建時(shí)自動(dòng)生成的Forms身份驗(yàn)證,即使用SqlExpress服務(wù)。
我想在Controller中獲取當(dāng)前登錄用戶的登錄名,但是使用User.Identity.Name時(shí),User為null,運(yùn)行時(shí)發(fā)生異常。
請(qǐng)教高手!
- 1 回答
- 0 關(guān)注
- 468 瀏覽
添加回答
舉報(bào)
0/150
提交
取消