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. How to deal with Fileupload control inside View control ?

How to deal with Fileupload control inside View control ?

Scheduled Pinned Locked Moved ASP.NET
tutorialquestion
6 Posts 2 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.
  • R Offline
    R Offline
    Rameez Raja
    wrote on last edited by
    #1

    Hi all , How i deal with the File Uplad control in View control . i placed the Fileuplaod control on view control . Is Fileupload stored data in viewstate like others controls inside view control ? Any Idea or link ? Best Regards

    C 1 Reply Last reply
    0
    • R Rameez Raja

      Hi all , How i deal with the File Uplad control in View control . i placed the Fileuplaod control on view control . Is Fileupload stored data in viewstate like others controls inside view control ? Any Idea or link ? Best Regards

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Rameez Raja wrote:

      Is Fileupload stored data in viewstate like others controls inside view control ?

      No. It's a html file input control, it's data is sent to the server, but it's not stored in viewstate.

      Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

      R 1 Reply Last reply
      0
      • C Christian Graus

        Rameez Raja wrote:

        Is Fileupload stored data in viewstate like others controls inside view control ?

        No. It's a html file input control, it's data is sent to the server, but it's not stored in viewstate.

        Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

        R Offline
        R Offline
        Rameez Raja
        wrote on last edited by
        #3

        Thanks for reply , It is server side control not the html file input control if not then kindly suggest me how i deal with fileupload control issue in view control ? Best Regards

        C 1 Reply Last reply
        0
        • R Rameez Raja

          Thanks for reply , It is server side control not the html file input control if not then kindly suggest me how i deal with fileupload control issue in view control ? Best Regards

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Rameez Raja wrote:

          It is server side control not the html file input control

          There is no such thing as a server side control, on the client. The 'server side control' is rendered as a html control, that's all it could ever be. whatever happens, on postback, your control will contain the bytes of your file and it's name. viewstate is for persisting values between postbacks, a file is assigned, sent on that postback and forgotten.

          Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

          R 1 Reply Last reply
          0
          • C Christian Graus

            Rameez Raja wrote:

            It is server side control not the html file input control

            There is no such thing as a server side control, on the client. The 'server side control' is rendered as a html control, that's all it could ever be. whatever happens, on postback, your control will contain the bytes of your file and it's name. viewstate is for persisting values between postbacks, a file is assigned, sent on that postback and forgotten.

            Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

            R Offline
            R Offline
            Rameez Raja
            wrote on last edited by
            #5

            Christian Graus wrote:

            There is no such thing as a server side control, on the client. The 'server side control' is rendered as a html control, that's all it could ever be. whatever happens, on postback, your control will contain the bytes of your file and it's name. viewstate is for persisting values between postbacks, a file is assigned, sent on that postback and forgotten.

            Thanks for reply, Ok iam agreed with you now how i deal with uplaoding the image may i have to store in folder Temprarly and called during displaying summary am i right ? Suggest me good option to deal with uploading . Best Regards

            C 1 Reply Last reply
            0
            • R Rameez Raja

              Christian Graus wrote:

              There is no such thing as a server side control, on the client. The 'server side control' is rendered as a html control, that's all it could ever be. whatever happens, on postback, your control will contain the bytes of your file and it's name. viewstate is for persisting values between postbacks, a file is assigned, sent on that postback and forgotten.

              Thanks for reply, Ok iam agreed with you now how i deal with uplaoding the image may i have to store in folder Temprarly and called during displaying summary am i right ? Suggest me good option to deal with uploading . Best Regards

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Yes, you need to write it to the file system if you want to display it after uploading.

              Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

              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