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.
"
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
sowjanya bommithiPosted Nov 6, 2016, 11:21 PM
Nitin SontakkePosted Nov 5, 2016, 8:54 AM
Rajeev PunhaniPosted Nov 5, 2016, 1:56 AM