Hi there,
I need help here i need away that a user can upload an image to be used as a profile avatar and if the user has no avatar picture a default image to be selected. 
Here is the code:
protected void ShowPicture() { using (mainDBDataContext dbconnection = new mainDBDataContext()) { var showavatar = from picture in dbconnection.Users where picture.UserId == Convert.ToInt16(Session["LoggedIn"]) select picture; StringBuilder showavatarSB = new StringBuilder(); foreach (var picture in showavatar) { showavatarSB.AppendFormat( "<img src='../Images/{0}' class='avatar img-circle img-thumbnail' alt='avatar' />", picture.ImageSrc); AvatarLiteral.Text = showavatar ...

Go to the complete details ...