Session["EmpPhoto"] = dsUser.Tables[0].Rows[0]["EmpPhoto"].ToString();
imageUser.ImageUrl = Session["Photo"].ToString();//here i am getting error
i have to show username and userphoto after he logged into the site. but for a particular user i dont have image so i am getting error" Object reference not set to an instance of an object.
"

Rajeev PunhaniRank #551 · 4.4K reputationPosted Nov 4, 2016, 9:56 PM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Nov 5, 2016, 4:54 AM EDT
sowjanya bommithi14 reputationPosted Nov 6, 2016, 6:21 PM EST