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. upload and download

upload and download

Scheduled Pinned Locked Moved ASP.NET
design
4 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.
  • H Offline
    H Offline
    hasani2007
    wrote on last edited by
    #1

    Hello My web page has download and upload page. I design the form with text boxes and combo boxes. I want to know what should I write in the code-behind for the button to collect the information from the text boxes and recieve the attached file. Excuse me for bad english writing.

    A A 2 Replies Last reply
    0
    • H hasani2007

      Hello My web page has download and upload page. I design the form with text boxes and combo boxes. I want to know what should I write in the code-behind for the button to collect the information from the text boxes and recieve the attached file. Excuse me for bad english writing.

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      If all the controls are Runat=Server you can directly access the objects in the server side. Like fileupload.SaveAs("filelocation") //File Upload is asp:FileUpload control YourTextbox.Text = "Hello" Hope this helps. :thumbsup:

      Abhishek Sur


      My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

      **Don't forget to click "Good Answer" if you like to.

      1 Reply Last reply
      0
      • H hasani2007

        Hello My web page has download and upload page. I design the form with text boxes and combo boxes. I want to know what should I write in the code-behind for the button to collect the information from the text boxes and recieve the attached file. Excuse me for bad english writing.

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

        hasani2007 wrote:

        I design the form with text boxes and combo boxes

        What is the purpose of TextBox and Combo Box over here ? Use only FileUpload Control To Upload File and Use an Button say Upload. OnClick on that button upload the file. Use this samle code. Please Check the syntax.

        If(FileUplaod1.HasFile)
        {
        FileUpload1.SaveAs(FilePath);
        }

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

        R 1 Reply Last reply
        0
        • A Abhijit Jana

          hasani2007 wrote:

          I design the form with text boxes and combo boxes

          What is the purpose of TextBox and Combo Box over here ? Use only FileUpload Control To Upload File and Use an Button say Upload. OnClick on that button upload the file. Use this samle code. Please Check the syntax.

          If(FileUplaod1.HasFile)
          {
          FileUpload1.SaveAs(FilePath);
          }

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

          R Offline
          R Offline
          Robert_Pan
          wrote on last edited by
          #4

          some free tool

          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