Results 1 to 4 of 4

Thread: RESOLVED!!! Dynamically displaying image from database

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member ARPRINCE's Avatar
    Join Date
    Mar 2003
    Location
    Pinoy in NJ
    Posts
    381

    Question 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:
    1. Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2.         'Code (ShowEmployeePicture.aspx ) that accepts the query from the calling page (ShowEmployee.aspx) above.
    3.         Dim iImageID
    4.         iImageID = Request.QueryString("ImageID")
    Last edited by ARPRINCE; May 28th, 2004 at 11:24 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width