C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Reading file names from folder


Posted Date: 06 Sep 2006      Total Responses: 3

Posted By: Bhavani Srinivasan       Member Level: Silver     Points: 2


I have to read the file names from the particular local holder and need to load in drop down.
the folder path is like (c:/inetpub/wwwroot/images)
by using javascript


how can i do.

plz help me





Responses

Author: Rajaraman    06 Sep 2006Member Level: DiamondRating:     Points: 2
Hi chk this answere

http://www.dotnetspider.com/qa/Question51892.aspx

Regards,



Author: Padma    06 Sep 2006Member Level: DiamondRating:     Points: 2
hi check it out http://www.c-point.com/JavaScript/articles/file_access_with_JavaScript.htm


Author: Afroz Khan    06 Sep 2006Member Level: GoldRating:     Points: 2
hi,

This is how u can do it in c# , u can convert it to the language u want.


using System.IO;
private void button2_Click(object sender, EventArgs e)
{
string[] s = Directory.GetFiles("D:\\Afroz\\test\\");
for (int i = 0; i<=s.Length - 1 ; i++)
{
listBox1.Items.Add(s[i]);
}
}




hope this helps.

Regards,
Afroz Khan.
http://khanafroz.blogspot.com





Post Reply
You must Sign In to post a response.
Next : Combobox in datagrid
Previous : navigation through pages
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween masks

Contact Us    Privacy Policy    Terms Of Use