Ravinder Rai

Ravinder Rai

  • NA
  • 1
  • 842

Passing parameter to ImageUrl

Apr 27 2015 10:52 AM
What is wrong with the ImageUrl string? it keeps returning null. when i use the immediate debugging window, string picture returns a valid string from the database (defaultuser.png), but then the Image2.ImageUrl returns "". 

string picture = reader["picture"].ToString();
        Image2.ImageUrl = "images/" + picture;