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. .txt file content on page

.txt file content on page

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
4 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.
  • M Offline
    M Offline
    Mri1a
    wrote on last edited by
    #1

    Hello !! Actually i wanted to know that how can I display the contents of a .txt file in a table column in asp.net

    Martand

    I 1 Reply Last reply
    0
    • M Mri1a

      Hello !! Actually i wanted to know that how can I display the contents of a .txt file in a table column in asp.net

      Martand

      I Offline
      I Offline
      Imran Khan Pathan
      wrote on last edited by
      #2

      File.ReadAllText(Server.MapPath("content.txt")); It returns the content of .txt file as string format Best Regard Pathan

      ---------------------------------------------------

      M 1 Reply Last reply
      0
      • I Imran Khan Pathan

        File.ReadAllText(Server.MapPath("content.txt")); It returns the content of .txt file as string format Best Regard Pathan

        ---------------------------------------------------

        M Offline
        M Offline
        Mri1a
        wrote on last edited by
        #3

        Is this supported in vs.net 2003.I am getting an error and ReadAllText does not exist in vs.net 2003

        Mrinal

        I 1 Reply Last reply
        0
        • M Mri1a

          Is this supported in vs.net 2003.I am getting an error and ReadAllText does not exist in vs.net 2003

          Mrinal

          I Offline
          I Offline
          Imran Khan Pathan
          wrote on last edited by
          #4

          have U Declare namespance "System.IO" for File class. Best Regard Pathan

          ---------------------------------------------------

          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