CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002
    Posts
    17

    File Upload Control

    Hi friends,

    I am using the HTml Input File control to upload the image to the server.

    Regarding this i have two problems :---

    1. I need this control to be hided. In this case when I call the click event of the file control the path is set but the Form submit event is not called, instead the File control is made blank. IF the event is not called programatically (the control is visible and Browse button is clicked) the form can be submitted and works as required.

    What is cause and Solution??


    2. I want to set the filter for images only. How this can be done??


    Regards,

    Lalit

  2. #2
    Join Date
    May 2002
    Location
    Ballymena
    Posts
    57
    Use HtmlInputFile.Accept="image/*"
    and
    HtmlInputFile.Visible=false

    Hope that helps

    More examples are in MSDN if you need more

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

Featured