Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
how to handle null value while getting image in asp.net
sowjanya bommithi
Nov 5 2016 1:19 AM
276
Reply
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.
"
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
I'm using Gridview for Delete recorde but i have show error
How to upload multiple images at once in DB by using Asp.net