fileupload control problem using an imagebutton on top of it

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bharathreddy
    New Member
    • Aug 2006
    • 116

    fileupload control problem using an imagebutton on top of it

    I am using updatepanel in my application and fileupload control...there is no way to customize the look and feel of the fileupload control so what i have done is kept an image on top of the browse button of the fileupload control.

    And when the user clicks on the imagebutton which will be exactly like a browse button, i raise the fileupload click event by javascript.

    Like fileupload1.cli ck();

    When i use this, when i click on the submit button of the form...it doesnot postback to the server, simply it executes the clientside script and goes dead....if i remove this image button, the same code works perfectly....?


    Did any one of you faced the same kind of problem....plea se its urgent...help me............. ......


    thanks in advance....

    Combination is like
    Updatepanel, FileUpload, Image on top of FileUpload..... problem is with the image click event raising the fileupload button click...
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Bharathreddy,

    The FileUpload control is not supported in UpdatePanels. It will appear to work (the page will submit to the server and everything) but you will never be able to get the file (it will always be null/nothing).

    FileUpload controls require full page postbacks.

    -Frinny

    Comment

    • bharathreddy
      New Member
      • Aug 2006
      • 116

      #3
      Originally posted by Frinavale
      Bharathreddy,

      The FileUpload control is not supported in UpdatePanels. It will appear to work (the page will submit to the server and everything) but you will never be able to get the file (it will always be null/nothing).

      FileUpload controls require full page postbacks.

      -Frinny
      Hi Frinny,

      Thankyou so much for the response. My problem is like, I am using a complete postback, its working good and the file is also being uploaded to ftp server, but my problem is:

      If I normally keep the fileupload control with out any styles its working good.

      But if I keep an image on top of the fileupload control which looks like a browse button, and on this image click i am firing the fileupload browse click to select the file. So far so good its works as expected. But when I try to click another button called submit, to submit the form, this button is not able to postback the page....i mean its button click event is not working....

      If I remove the image on top of browse button its working fine.....

      Thanks
      Bharath VasiReddy

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Sounds like a job for FireBug :)
        You need to figure out which control is over top of your submit button.
        It's probably has a visible:false style...but it's still there hovering over the submit button.

        Comment

        Working...