Click here to Skip to main content
15,918,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: session is cleared Pin
joelle@scope10-Feb-10 23:57
joelle@scope10-Feb-10 23:57 
GeneralRe: session is cleared Pin
R22k10-Feb-10 23:59
R22k10-Feb-10 23:59 
QuestionHow to open excel in asp.net??? Pin
JC.KaNNaN10-Feb-10 21:07
JC.KaNNaN10-Feb-10 21:07 
AnswerRe: How to open excel in asp.net??? Pin
saini arun10-Feb-10 21:49
saini arun10-Feb-10 21:49 
QuestionI want to add, edit and delete data from table using gridview in Asp.net? Pin
mdrizwan_110-Feb-10 20:03
mdrizwan_110-Feb-10 20:03 
AnswerRe: I want to add, edit and delete data from table using gridview in Asp.net? Pin
i gr810-Feb-10 20:26
i gr810-Feb-10 20:26 
GeneralRe: I want to add, edit and delete data from table using gridview in Asp.net? Pin
mdrizwan_111-Feb-10 4:05
mdrizwan_111-Feb-10 4:05 
GeneralI need Help with FTP browser ! Pin
mgexpression10-Feb-10 20:01
mgexpression10-Feb-10 20: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 19:42
hi_everybody10-Feb-10 19:42 
QuestionModalPopupExtender confirmation not working in <asp:CommandFiel in grid view Pin
Vishnu Narayan Mishra10-Feb-10 18:59
Vishnu Narayan Mishra10-Feb-10 18:59 
QuestionHow to refresh Parent particular griview? Pin
JC.KaNNaN10-Feb-10 18:53
JC.KaNNaN10-Feb-10 18:53 
AnswerRe: How to refresh Parent particular griview? Pin
Gaurav Dudeja India10-Feb-10 18:56
Gaurav Dudeja India10-Feb-10 18:56 
GeneralRe: How to refresh Parent particular griview? Pin
JC.KaNNaN10-Feb-10 19:50
JC.KaNNaN10-Feb-10 19:50 
QuestionHow to assign the total value of a column to the footer? Pin
TeiUKei10-Feb-10 18:34
TeiUKei10-Feb-10 18:34 
AnswerRe: How to assign the total value of a column to the footer? Pin
Gaurav Dudeja India10-Feb-10 18:54
Gaurav Dudeja India10-Feb-10 18:54 
NewsGoogle API - graph Pin
Member 395625710-Feb-10 18:17
Member 395625710-Feb-10 18:17 
GeneralRe: Google API - graph Pin
nainakarri10-Feb-10 18:58
nainakarri10-Feb-10 18:58 
GeneralRe: Google API - graph Pin
Member 395625710-Feb-10 19:36
Member 395625710-Feb-10 19:36 
GeneralRe: Google API - graph Pin
Anurag Gandhi10-Feb-10 20:42
professionalAnurag Gandhi10-Feb-10 20:42 
QuestionFind How many Enter Key Press Pin
sjs4u10-Feb-10 17:55
sjs4u10-Feb-10 17:55 
AnswerRe: Find How many Enter Key Press Pin
Anurag Gandhi10-Feb-10 18:19
professionalAnurag Gandhi10-Feb-10 18:19 
Questionon keypress enter to submit login details IE is working but in firefox not working Pin
Nath10-Feb-10 15:40
Nath10-Feb-10 15:40 
QuestionCalling webservice Pin
Ramkithepower10-Feb-10 15:33
Ramkithepower10-Feb-10 15:33 
AnswerRe: Calling webservice Pin
Pranay Rana10-Feb-10 18:18
professionalPranay Rana10-Feb-10 18:18 
AnswerRe: Calling webservice Pin
sashidhar10-Feb-10 18:24
sashidhar10-Feb-10 18: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.