Click here to Skip to main content
15,847,653 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: session is cleared Pin
joelle@scope11-Feb-10 0:57
joelle@scope11-Feb-10 0:57 
GeneralRe: session is cleared Pin
R22k11-Feb-10 0:59
R22k11-Feb-10 0:59 
QuestionHow to open excel in asp.net??? Pin
JC.KaNNaN10-Feb-10 22:07
JC.KaNNaN10-Feb-10 22:07 
AnswerRe: How to open excel in asp.net??? Pin
saini arun10-Feb-10 22:49
saini arun10-Feb-10 22:49 
QuestionI want to add, edit and delete data from table using gridview in Asp.net? Pin
mdrizwan_110-Feb-10 21:03
mdrizwan_110-Feb-10 21:03 
AnswerRe: I want to add, edit and delete data from table using gridview in Asp.net? Pin
i gr810-Feb-10 21:26
i gr810-Feb-10 21:26 
GeneralRe: I want to add, edit and delete data from table using gridview in Asp.net? Pin
mdrizwan_111-Feb-10 5:05
mdrizwan_111-Feb-10 5:05 
GeneralI need Help with FTP browser ! Pin
mgexpression10-Feb-10 21:01
mgexpression10-Feb-10 21:01 
Hello,

I need help, i want to list a content from specific folder from FTP, a can make the connection to FTP, but i don't know how can list the files contended in a specific Folder from FTP in one ListBox.
Thank's for you time, i'm new ( beginner) in .NET

Thank's again !

This is my code in C#

public partial class _Default : System.Web.UI.Page
{

protected void Page_Load(object sender, EventArgs e)
{
FtpWebRequest Request = (FtpWebRequest)WebRequest.Create("ftp://server.com");
Request.Method = WebRequestMethods.Ftp.ListDirectory;
Request.Credentials = new NetworkCredential("user", "pass");

FtpWebResponse Response = (FtpWebResponse)Request.GetResponse();
Stream ResponseStream = Response.GetResponseStream();
StreamReader Reader = new StreamReader(ResponseStream);

//ListBox1.Items.Add(Response.BannerMessage);
//ListBox1.Items.Add(Response.WelcomeMessage);
while (!Reader.EndOfStream)//Read file name
{
ListBox1.Items.Add(Reader.ReadLine().ToString());
}
Response.Close();
ResponseStream.Close();
Reader.Close();
}
}

and i have one folder ftp;//server.com/FolderX/
i want to list the files from FolderX in one ListBox and in one label to show me the numbers of files from FolderX

Many thamks
Questionhow to use menu control using database... Pin
hi_everybody10-Feb-10 20:42
hi_everybody10-Feb-10 20:42 
QuestionModalPopupExtender confirmation not working in <asp:CommandFiel in grid view Pin
Vishnu Narayan Mishra10-Feb-10 19:59
Vishnu Narayan Mishra10-Feb-10 19:59 
QuestionHow to refresh Parent particular griview? Pin
JC.KaNNaN10-Feb-10 19:53
JC.KaNNaN10-Feb-10 19:53 
AnswerRe: How to refresh Parent particular griview? Pin
Gaurav Dudeja India10-Feb-10 19:56
Gaurav Dudeja India10-Feb-10 19:56 
GeneralRe: How to refresh Parent particular griview? Pin
JC.KaNNaN10-Feb-10 20:50
JC.KaNNaN10-Feb-10 20:50 
QuestionHow to assign the total value of a column to the footer? Pin
TeiUKei10-Feb-10 19:34
TeiUKei10-Feb-10 19:34 
AnswerRe: How to assign the total value of a column to the footer? Pin
Gaurav Dudeja India10-Feb-10 19:54
Gaurav Dudeja India10-Feb-10 19:54 
NewsGoogle API - graph Pin
Member 395625710-Feb-10 19:17
Member 395625710-Feb-10 19:17 
GeneralRe: Google API - graph Pin
nainakarri10-Feb-10 19:58
nainakarri10-Feb-10 19:58 
GeneralRe: Google API - graph Pin
Member 395625710-Feb-10 20:36
Member 395625710-Feb-10 20:36 
GeneralRe: Google API - graph Pin
Anurag Gandhi10-Feb-10 21:42
professionalAnurag Gandhi10-Feb-10 21:42 
QuestionFind How many Enter Key Press Pin
sjs4u10-Feb-10 18:55
sjs4u10-Feb-10 18:55 
AnswerRe: Find How many Enter Key Press Pin
Anurag Gandhi10-Feb-10 19:19
professionalAnurag Gandhi10-Feb-10 19:19 
Questionon keypress enter to submit login details IE is working but in firefox not working Pin
Nath10-Feb-10 16:40
Nath10-Feb-10 16:40 
QuestionCalling webservice Pin
Ramkithepower10-Feb-10 16:33
Ramkithepower10-Feb-10 16:33 
AnswerRe: Calling webservice Pin
Pranay Rana10-Feb-10 19:18
professionalPranay Rana10-Feb-10 19:18 
AnswerRe: Calling webservice Pin
sashidhar10-Feb-10 19:24
sashidhar10-Feb-10 19:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.