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. can we maintain value of file upload control in case of postback?

can we maintain value of file upload control in case of postback?

Scheduled Pinned Locked Moved ASP.NET
question
8 Posts 4 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.
  • K Offline
    K Offline
    keyur satyadev
    wrote on last edited by
    #1

    hi when i click on submit button, page is postback and value of file upload control is lost. can i maintain this value. i need value in text area of file upload control. i got the value using hidden field but its not display in file upload control. is their any way(s) is find out of this solution?

    Regards Keyur Satyadev

    S C 2 Replies Last reply
    0
    • K keyur satyadev

      hi when i click on submit button, page is postback and value of file upload control is lost. can i maintain this value. i need value in text area of file upload control. i got the value using hidden field but its not display in file upload control. is their any way(s) is find out of this solution?

      Regards Keyur Satyadev

      S Offline
      S Offline
      sashidhar
      wrote on last edited by
      #2

      I think U Can Use Ajax update panel without updating value of File Upload Control or store it in session or query string . And u Can Retrieve Back.

      If It Helps Click It as Answer

      K A 2 Replies Last reply
      0
      • S sashidhar

        I think U Can Use Ajax update panel without updating value of File Upload Control or store it in session or query string . And u Can Retrieve Back.

        If It Helps Click It as Answer

        K Offline
        K Offline
        keyur satyadev
        wrote on last edited by
        #3

        in update panel file upload control will not work properly. i check it.

        Regards Keyur Satyadev

        S 1 Reply Last reply
        0
        • S sashidhar

          I think U Can Use Ajax update panel without updating value of File Upload Control or store it in session or query string . And u Can Retrieve Back.

          If It Helps Click It as Answer

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          Do you thing, you will able to get the full file path from FileUplaod Control ? ;)

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          S 1 Reply Last reply
          0
          • A Abhijit Jana

            Do you thing, you will able to get the full file path from FileUplaod Control ? ;)

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            S Offline
            S Offline
            sashidhar
            wrote on last edited by
            #5

            Abhijit Jana wrote:

            Do you thing

            :confused:

            If It Helps Click It as Answer

            A 1 Reply Last reply
            0
            • K keyur satyadev

              in update panel file upload control will not work properly. i check it.

              Regards Keyur Satyadev

              S Offline
              S Offline
              sashidhar
              wrote on last edited by
              #6

              Check This Link It May Help http://www.xtremedotnettalk.com/showthread.php?t=101865[^]

              If It Helps Click It as Answer

              1 Reply Last reply
              0
              • S sashidhar

                Abhijit Jana wrote:

                Do you thing

                :confused:

                If It Helps Click It as Answer

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                Which value you want to store on session ? :)

                Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                1 Reply Last reply
                0
                • K keyur satyadev

                  hi when i click on submit button, page is postback and value of file upload control is lost. can i maintain this value. i need value in text area of file upload control. i got the value using hidden field but its not display in file upload control. is their any way(s) is find out of this solution?

                  Regards Keyur Satyadev

                  C Offline
                  C Offline
                  Chirantan Upadhyay
                  wrote on last edited by
                  #8

                  Hi Keyur, This can be fixed using session object. Please review my article this will sort out the problem in minutes. http://www.codeproject.com/Tips/101834/How-to-Maintain-FileUpload-Control-s-State-after-P.aspx Thanks, Chirantan

                  Chirantan Upadhyay Sr.Software Engineer, chirantan_upadhyay@yahoo.com Infovision Solutions Gurgaon, New Delhi

                  modified on Monday, August 16, 2010 4:51 AM

                  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