我正在尝试将 url 存储在 Session 对象中,但它会引发错误。
Session["Url"]= linkDetails.Url;
Url 值显示为
http://www.mnn.com/earth-matters/space/photos/10-places-on-earth-that-resemble-alien-planets/etosha-pan-namibia
例外是
Object reference is not set an instance of the object