List items in a folder

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default List items in a folder

    I would like to be able to list a directory (or something like it)of the
    contance of a certian folder. How can this be done on a web page?
    TIA
    Jim


    James Rasmussen Guest

  2. Similar Questions and Discussions

    1. JavaScript: html list items within list items?
      Hi, I've seen how to implement a JavaScript to change the CSS class of every other list item in an unordered list, but, being new to JavaScript,...
    2. Max Number of Items in a List
      Hello, can anyone tell me the syntax format for retrieving the number of elements that the listbox currently holds?? In flashMX2002 script...
    3. help with Flash list box items
      Hello, I am rather a novice to Flash, but no where in my manuals and tutorials can I find how I can change the font-family, color, and font-size...
    4. Howto stop folder from expanding when moving items into it
      Folks, Is it possible to stop folders from expanding when moving items into them? (annoying) I can't find an option to turn this on or off. ...
    5. referencing items in a list box
      This is a 2 part question. 1. I was wondering how to check to see if an item is in a listbox through code. For example: I want to check if...
  3. #2

    Default Re: List items in a folder

    This is how you can do that with listbox web control, consider lstFileName
    as listbox

    Dim oDirectoryInfo As DirectoryInfo
    oDirectoryInfo = New DirectoryInfo(hdnDirName.Value)
    lstFileName.DataSource = oDirectoryInfo.GetFiles("*.resources")
    lstFileName.DataTextField = "Name"
    lstFileName.DataValueField = "Name"
    lstFileName.DataBind()

    --
    Saravana
    Microsoft India Community Star,
    MCAD,SE,SD,DBA.


    "James Rasmussen" <jmrasmus@yrmc.org> wrote in message
    news:ut7brliUDHA.2184@TK2MSFTNGP10.phx.gbl...
    > I would like to be able to list a directory (or something like it)of the
    > contance of a certian folder. How can this be done on a web page?
    > TIA
    > Jim
    >
    >

    Saravana Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139