I PLACED IMAGES IN PICTURES FOLDER WITH REGNUMBER AS IMAGE NAME.
i have a text box with search button the the web page when i enter the regnumber and press search the data pertaining to the staff displys in text boxes.
the code used is as under
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSubmit.Click
Dim PNO As String = inputtxt.Text
Dim connectString As String = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=c:/Awing/AWingAMS.mdb"
Dim con As OleDbConnection = New OleDbConnection(connectString)
con.Open()
Dim qstr As String
qstr = "select * from PersData where PNO='" + inputtxt.Text + "'"
Dim msadp As New OleDbDataAdapter(qstr, con)
Dim dt As New DataSet
'dt.Clear()
msadp.Fill(dt, "PersData")
pnotxt.Text = dt.Tables("PersData").Rows(0).Item("PNO")
nametxt.Text = dt.Tables("PersData").Rows(0).Item("Name")
dobtxt.Text = dt.Tables("PersData").Rows(0).Item("DOB")
comntxt.Text = dt.Tables("PersData").Rows(0).Item("TYPECOMN")
coursetxt.Text = dt.Tables("PersData").Rows(0).Item("CourseStr")
torstxt.Text = dt.Tables("PersData").Rows(0).Item("FROM")
pgtxt.Text = dt.Tables("PersData").Rows(0).Item("Postgraduation")
civqualtxt.Text = dt.Tables("PersData").Rows(0).Item("Civilqualifications")
batchtxt.Text = dt.Tables("PersData").Rows(0).Item("Batch")
dortxt.Text = dt.Tables("PersData").Rows(0).Item("DOR")
End Sub
End Class
how can i incorporate show image when i search a regnumber in text box image of that person should display