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. Select Excel File as Database table in runtime - ASP.Net - C#

Select Excel File as Database table in runtime - ASP.Net - C#

Scheduled Pinned Locked Moved ASP.NET
csharpdatabaseasp-nettutorialquestion
2 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.
  • S Offline
    S Offline
    SravanKumar A
    wrote on last edited by
    #1

    I am developing a web application, which have to get the data from selected Excel file and save it in SQL Database. I want to select Excel File in runtime using the FileUpload control. Is this possible..? Please guide me..

    C 1 Reply Last reply
    0
    • S SravanKumar A

      I am developing a web application, which have to get the data from selected Excel file and save it in SQL Database. I want to select Excel File in runtime using the FileUpload control. Is this possible..? Please guide me..

      C Offline
      C Offline
      chester_it21
      wrote on last edited by
      #2

      hi SravanKumar-A, yes it's possible.... first, his first save the file when uploaded, this means stored on the Server side, here you set it to accommodate PathLocation Files uploaded the results .. then, you read his file based PathLocation excel file it in the store .. how to read the contents of the data from the Excel file, you can googling, a lot of his examples .. You must read the contents of his excel how many rows, then you loop through the contents of each row to get her, then you input into a database row-a row .. after that you delete the file upload it if you save the file you do not use anymore .. yes, this is just a logical course to determine the appropriate code logic what its like ..

      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