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. Folder items sorting Asp.net 1.1

Folder items sorting Asp.net 1.1

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminalgorithmstools
4 Posts 3 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
    kirthikirthi
    wrote on last edited by
    #1

    Hi everyone, I am working with Asp.net 1.1 I want to list folder items (newly add first or only newly add items only (display in datagrid)) sorting i am trying this code Dim objFSO, objFile, objFolder objFSO = Server.CreateObject("Scripting.FileSystemObject") objFolder = objFSO.GetFolder(Server.MapPath("~/big/")) For Each objFile In objFolder.Files Response.Write(objFile.Name & " : ") Response.Write(objFile.DateLastModified & "<br>") Next objFolder = Nothing objFSO = Nothing please can any one help me on this script or any other Thanks

    Kirthi

    A K 2 Replies Last reply
    0
    • K kirthikirthi

      Hi everyone, I am working with Asp.net 1.1 I want to list folder items (newly add first or only newly add items only (display in datagrid)) sorting i am trying this code Dim objFSO, objFile, objFolder objFSO = Server.CreateObject("Scripting.FileSystemObject") objFolder = objFSO.GetFolder(Server.MapPath("~/big/")) For Each objFile In objFolder.Files Response.Write(objFile.Name & " : ") Response.Write(objFile.DateLastModified & "<br>") Next objFolder = Nothing objFSO = Nothing please can any one help me on this script or any other Thanks

      Kirthi

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

      kirthikirthi wrote:

      please can any one help me on this script

      What is the problem?

      cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

      K 1 Reply Last reply
      0
      • A Abhijit Jana

        kirthikirthi wrote:

        please can any one help me on this script

        What is the problem?

        cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net View My Recent Article

        K Offline
        K Offline
        kirthikirthi
        wrote on last edited by
        #3

        Thx for reply I want to list folder items (Listing folder items(images) in datagrid) But i want show (newly added first or only newly added items in the folder and display in datagrid) I am trying this code Dim objFSO, objFile, objFolder objFSO = Server.CreateObject("Scripting.FileSystemObject") objFolder = objFSO.GetFolder(Server.MapPath("~/big/")) For Each objFile In objFolder.Files Response.Write(objFile.Name & " : ") Response.Write(objFile.DateLastModified & "<br>") Next objFolder = Nothing objFSO = Nothing Thank you

        Kirthi

        1 Reply Last reply
        0
        • K kirthikirthi

          Hi everyone, I am working with Asp.net 1.1 I want to list folder items (newly add first or only newly add items only (display in datagrid)) sorting i am trying this code Dim objFSO, objFile, objFolder objFSO = Server.CreateObject("Scripting.FileSystemObject") objFolder = objFSO.GetFolder(Server.MapPath("~/big/")) For Each objFile In objFolder.Files Response.Write(objFile.Name & " : ") Response.Write(objFile.DateLastModified & "<br>") Next objFolder = Nothing objFSO = Nothing please can any one help me on this script or any other Thanks

          Kirthi

          K Offline
          K Offline
          Kannan Ar
          wrote on last edited by
          #4

          I stopped development on framework 1.1 few years before. I think there is a function System.IO.Directory.GetFiles which will return string array of file names on a given folder name.

          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