Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. FileUpload1.Hasfile always returns False

FileUpload1.Hasfile always returns False

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saba02
    wrote on last edited by
    #1

    Hi, I want when my FileUpload has file do something, If FileUpload1.HasFile Then FileUpload1.PostedFile.SaveAs(Path +".....") End If But why it always returns Flase? How I can solve this problem? Please help me. Thank You

    Hoda

    M A 2 Replies Last reply
    0
    • S Saba02

      Hi, I want when my FileUpload has file do something, If FileUpload1.HasFile Then FileUpload1.PostedFile.SaveAs(Path +".....") End If But why it always returns Flase? How I can solve this problem? Please help me. Thank You

      Hoda

      M Offline
      M Offline
      MidwestLimey
      wrote on last edited by
      #2

      What it most likely means is that the FileUpload does not have the file. The next more pertinent question is why does it not? That I can't answer without more information.

      10110011001111101010101000001000001101001010001010100000100000101000001000111100010110001011001011

      1 Reply Last reply
      0
      • S Saba02

        Hi, I want when my FileUpload has file do something, If FileUpload1.HasFile Then FileUpload1.PostedFile.SaveAs(Path +".....") End If But why it always returns Flase? How I can solve this problem? Please help me. Thank You

        Hoda

        A Offline
        A Offline
        AlexeiXX3
        wrote on last edited by
        #3

        What else do you have in that page? Are you using updatepanels?

        Alexei Rodriguez

        S 1 Reply Last reply
        0
        • A AlexeiXX3

          What else do you have in that page? Are you using updatepanels?

          Alexei Rodriguez

          S Offline
          S Offline
          Saba02
          wrote on last edited by
          #4

          Thank You, yes i'm using Update Pannel.

          Hoda

          A 1 Reply Last reply
          0
          • S Saba02

            Thank You, yes i'm using Update Pannel.

            Hoda

            A Offline
            A Offline
            AlexeiXX3
            wrote on last edited by
            #5

            Fileupload controls cant be used with async postback Add a postback trigger for the control causing the postback

            Alexei Rodriguez

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups