RESOLVED!!! Dynamically displaying image from database
I have a webpage with a textbox1 and a button. User enters a number and clicks on the button and it will display the corresponding picture from the database.
How do I code it in such a way that the code below takes that value of my textbox1 instead of a static image id number of 2?
TIF
Code:
<IMG SRC="ShowEmployeePicture.aspx?ImageID=2 " style="Z-INDEX: 101; LEFT: 16px; WIDTH: 56px; POSITION: absolute; TOP: 16px; HEIGHT: 56px"
height="56" alt="" width="56">
VB Code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Code (ShowEmployeePicture.aspx ) that accepts the query from the calling page (ShowEmployee.aspx) above.
Dim iImageID
iImageID = Request.QueryString("ImageID")