Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > List items in a folder

Reply
Thread Tools

List items in a folder

 
 
James Rasmussen
Guest
Posts: n/a
 
      07-24-2003
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


 
Reply With Quote
 
 
 
 
Saravana
Guest
Posts: n/a
 
      07-25-2003
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting items to deleted items folder. Geopelia NZ Computing 16 11-13-2012 05:49 AM
unable to retrieve listbox items on postback , items moved usingjavascript between 2 list boxes (source and target ) divya ASP .Net 1 05-28-2008 05:27 AM
Is there any way to append some items to List box, without retrieving all items through AJAX? Anjan Bhowmik ASP .Net 1 02-14-2008 09:02 PM
Accessing List Items that were added to a list box via JavaScript Scott324 ASP .Net 3 10-27-2005 09:17 PM
grouping items among a list according to items subtag value Gilles Kuhn XML 0 09-15-2003 12:01 PM



Advertisments