I have to call path for image from database.
I get the path. But problem here, the an image cannot be show on that page. Why?. Below is my
code.
Using adpPhotoPath As New dsPhotoTableAdapters.EmployeePhotoPathTableAdapter
adpPhotoPath.SelectCommand(0).CommandText = "Select * From EmployeePhotoPath"
Dim sWhere As String = "EmpNo = '" + lblEmpNo.Text + "'"
Dim dr As dsPhoto.EmployeePhotoPathRow = adpPhotoPath.GetDataByWhere(sWhere).Rows(0)
Dim drOrg As dsPhoto.EmployeePhotoPathRow = adpPhotoPath.GetDataByWhere(sWhere).Rows(0)
ImgPic.ImageUrl = GetValue(dr.Item("PhotoPath"), String.Empty)
End Using
Help me pls?
I get the path. But problem here, the an image cannot be show on that page. Why?. Below is my
code.
Using adpPhotoPath As New dsPhotoTableAdapters.EmployeePhotoPathTableAdapter
adpPhotoPath.SelectCommand(0).CommandText = "Select * From EmployeePhotoPath"
Dim sWhere As String = "EmpNo = '" + lblEmpNo.Text + "'"
Dim dr As dsPhoto.EmployeePhotoPathRow = adpPhotoPath.GetDataByWhere(sWhere).Rows(0)
Dim drOrg As dsPhoto.EmployeePhotoPathRow = adpPhotoPath.GetDataByWhere(sWhere).Rows(0)
ImgPic.ImageUrl = GetValue(dr.Item("PhotoPath"), String.Empty)
End Using
Help me pls?