I know it's nothing big but well ..I suppose the issue isn't that big either .
You can see my issue that I'm facing here :
http://stackoverflow.com/questions/34484499/vb-net-not-showing-pictureIn case you are too lazy to enter :
I'm basically trying to get the avatar picture of a specific user using this :
Private Function grab_p_pic(ByVal username As String) As Boolean
Try
Using saConn As New SqlConnection(fyben_reader)
Dim query As String = "SELECT profile_pic_url FROM fybens_lair_website.dbo.db_web_profile WHERE username = '" & SafeSqlLiteral(username) & "'"
Dim cmd As New SqlCommand(query, saConn)
saConn.Open()
Using saReader As SqlDataReader = cmd.ExecuteReader
While saReader.Read
profile_pic_url.ImageUrl = saReader("profile_pic_url")
End While
End Using
saConn.Close()
End Using
Catch ex As Exception
submitError(ex.Message)
End Try
End Function
Design :
<div class='right_content' style='text-align: center;'>
<div id="profile_pic" runat="server">
<asp:Image ID="profile_pic_url" runat="server" Height="120" Width="120" />
</div>
</div>
Results that I'm getting are a Blank picture with borders and that's it . If I use
"View page source code" by right-clicking on the browser , I will see that
src = "" (which means it has nothing on it)
Any help is highly appreciated .