1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Need Urgent Help On Vb!!!

Discussion in 'C#' started by winsonyeung, Jul 31, 2008.

  1. #1
    Hi Dear DPers !

    Yes, I Need URGENT HELP !!!
    My project submission due soon
    Here is my problem
    I need to update a photo into a folder and the path saved to my database.
    Then show the image using the "FileUpload" path

    I complete "I need to update a photo into a folder and the path saved to my database."

    But i need help on how to "show the image using the "FileUpload" path"

    Here is my simple code

    Aspx code
    <input id="File1" runat="server" type="file" /></td>

    Aspx VB Code
    This button is the "Upload" Button, just use it to show the image.
    Note: "this is not the submit button"

    Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click

    Img1.Visible = True
    Img1.ImageUrl = File1.Name


    End Sub
    End Class

    Hope i'm not missing anything
    What can i do so that after i press the upload button,
    the hidden image will become visible and show the image ?

    Thz a lot !
     
    winsonyeung, Jul 31, 2008 IP
  2. vihutuo

    vihutuo Well-Known Member

    Messages:
    1,511
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    180
    #2
    I think you will need to first write code to save the image to the server and then use that URL for displaying the image
     
    vihutuo, Aug 4, 2008 IP