If .Tables(0).Rows(i).Item("Pic_person") Is DBNull.Value Then
PictureBox1.Image = Nothing
Else
If System.IO.File.Exists(.Tables(0).Rows(i).Item("Pic_person")) Then
PictureBox1.Image = Image.FromFile(.Tables(0).Rows(i).Item("Pic_person"))
End If
End If
Console.WriteLine(txtId_per.Text)
Next
Finddata = True
Else ' ส่งค่าศูนย์ถ้าไม่เจอ
Finddata = False
End If
End With
objDS = Nothing
End Function
ขอคำแนะนำด้วยนะครับผม
Tag : .NET, Ms SQL Server 2005, Ms SQL Server 2008, Web (ASP.NET), VB.NET, VS 2008 (.NET 3.x)