Click here to Skip to main content
15,886,067 members
Home / Discussions / C#
   

C#

 
GeneralRe: how i find all Control's ID and TEXT ? Pin
Ravi Munde11-Dec-08 19:47
Ravi Munde11-Dec-08 19:47 
GeneralRe: how i find all Control's ID and TEXT ? Pin
Brij11-Dec-08 20:06
mentorBrij11-Dec-08 20:06 
GeneralRe: how i find all Control's ID and TEXT ? Pin
Ravi Munde11-Dec-08 23:30
Ravi Munde11-Dec-08 23:30 
AnswerRe: how i find all Control's ID and TEXT ? Pin
Lev Danielyan11-Dec-08 19:39
Lev Danielyan11-Dec-08 19:39 
AnswerRe: how i find all Control's ID and TEXT ? Pin
Christian Graus11-Dec-08 20:27
protectorChristian Graus11-Dec-08 20:27 
QuestionAccess Violation Exception in Unmanaged dll Pin
Arun_mw11-Dec-08 19:17
Arun_mw11-Dec-08 19:17 
AnswerRe: Access Violation Exception in Unmanaged dll [modified] Pin
Lev Danielyan11-Dec-08 19:20
Lev Danielyan11-Dec-08 19:20 
QuestionFile Upolad Pin
B8711-Dec-08 18:59
B8711-Dec-08 18:59 
Hi,
I need to upload file in a folder at FTP server,i have already posted this but i need a coding guide not a software for this.

The code i used is,

txtfilurl.Text = FileUpload1.PostedFile.FileName;
FileInfo filename = new FileInfo(txtfilurl.Text);
FtpWebRequest request = (FtpWebRequest)WebRequest.Create(txtaddr.Text + "/" + filename.Name);
request.Method = WebRequestMethods.Ftp.UploadFile;
request.Credentials = new NetworkCredential(txtuser.Text, txtpass.Text);
request.KeepAlive = false;
request.UseBinary = true;
Stream ftpstream = request.GetRequestStream();//--->This line shows the error
FileStream file = File.OpenRead(txtfilurl.Text);

int len = 1024;
byte[] buff = new byte[len];
int bytesread = 0;
do
{
bytesread = file.Read(buff, 0, len);
ftpstream.Write(buff, 0, bytesread);
}
while (bytesread != 0);
file.Close();
ftpstream.Close();

Error msg is:Web exception
The remote server returned an error: (550) File unavailable (e.g., file not found, no access).

AnswerRe: File Upolad Pin
Dave Kreskowiak11-Dec-08 21:37
mveDave Kreskowiak11-Dec-08 21:37 
GeneralRe: File Upolad Pin
B8711-Dec-08 23:48
B8711-Dec-08 23:48 
GeneralRe: File Upolad Pin
Dave Kreskowiak12-Dec-08 13:37
mveDave Kreskowiak12-Dec-08 13:37 
QuestionPlz solve the prob its very urgent Pin
GauravGupta21211-Dec-08 18:57
GauravGupta21211-Dec-08 18:57 
GeneralRe: Plz solve the prob its very urgent Pin
TJS4u11-Dec-08 19:26
TJS4u11-Dec-08 19:26 
GeneralRe: Plz solve the prob its very urgent Pin
GauravGupta21211-Dec-08 19:39
GauravGupta21211-Dec-08 19:39 
GeneralRe: Plz solve the prob its very urgent Pin
TJS4u11-Dec-08 19:43
TJS4u11-Dec-08 19:43 
AnswerRe: Plz solve the prob its very urgent Pin
sunitkrishna11-Dec-08 20:27
sunitkrishna11-Dec-08 20:27 
AnswerRe: Plz solve the prob its very urgent Pin
J4amieC11-Dec-08 22:38
J4amieC11-Dec-08 22:38 
AnswerRe: Plz solve the prob its very urgent Pin
Ankit Aneja12-Dec-08 6:30
Ankit Aneja12-Dec-08 6:30 
Questionif (T1.Text = "admin" && T2.Text = "admin") Pin
MS Lee11-Dec-08 18:36
MS Lee11-Dec-08 18:36 
AnswerRe: if (T1.Text = "admin" && T2.Text = "admin") Pin
Brij11-Dec-08 18:43
mentorBrij11-Dec-08 18:43 
AnswerRe: if (T1.Text = "admin" && T2.Text = "admin") Pin
Thomas Weller11-Dec-08 18:46
Thomas Weller11-Dec-08 18:46 
AnswerRe: if (T1.Text = "admin" && T2.Text = "admin") Pin
MS Lee11-Dec-08 18:49
MS Lee11-Dec-08 18:49 
AnswerRe: if (T1.Text = "admin" && T2.Text = "admin") Pin
Christian Graus11-Dec-08 20:28
protectorChristian Graus11-Dec-08 20:28 
QuestionToggling and enabling of menustrip items and sub items. Pin
sunitkrishna11-Dec-08 18:30
sunitkrishna11-Dec-08 18:30 
AnswerRe: Toggling and enabling of menustrip items and sub items. Pin
Lev Danielyan11-Dec-08 19:19
Lev Danielyan11-Dec-08 19:19 

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.