Click here to Skip to main content
15,905,967 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: ASP.net Chat program Pin
Brij8-Feb-10 19:34
mentorBrij8-Feb-10 19:34 
GeneralRe: ASP.net Chat program Pin
Arny18-Feb-10 23:23
Arny18-Feb-10 23:23 
QuestionAccess GridView Lable using javascript Pin
sjs4u8-Feb-10 18:48
sjs4u8-Feb-10 18:48 
AnswerRe: Access GridView Lable using javascript Pin
Brij8-Feb-10 19:32
mentorBrij8-Feb-10 19:32 
GeneralRe: Access GridView Lable using javascript Pin
sjs4u8-Feb-10 19:58
sjs4u8-Feb-10 19:58 
GeneralRe: Access GridView Lable using javascript Pin
Brij8-Feb-10 20:24
mentorBrij8-Feb-10 20:24 
GeneralRe: Access GridView Lable using javascript Pin
sjs4u8-Feb-10 20:29
sjs4u8-Feb-10 20:29 
GeneralRe: Access GridView Lable using javascript Pin
Brij8-Feb-10 20:53
mentorBrij8-Feb-10 20:53 
Questionregarding variables declared in a page Pin
vijaylumar8-Feb-10 17:15
vijaylumar8-Feb-10 17:15 
AnswerRe: regarding variables declared in a page Pin
Not Active8-Feb-10 17:45
mentorNot Active8-Feb-10 17:45 
AnswerRe: regarding variables declared in a page Pin
m@dhu8-Feb-10 17:45
m@dhu8-Feb-10 17:45 
QuestionHow to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_8-Feb-10 8:39
-Muc_8-Feb-10 8:39 
AnswerRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
PunkIsNotDead8-Feb-10 12:13
PunkIsNotDead8-Feb-10 12:13 
GeneralRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_9-Feb-10 0:44
-Muc_9-Feb-10 0:44 
AnswerRe: How to sort each row in a GridView based from a Field [RankOrder] from Database Pin
-Muc_9-Feb-10 0:48
-Muc_9-Feb-10 0:48 
Questiongetting the full file path from a FileUpload control in Mozilla Pin
ashutosh kumar jha8-Feb-10 8:33
ashutosh kumar jha8-Feb-10 8:33 
AnswerRe: getting the full file path from a FileUpload control in Mozilla Pin
Abhishek Sur8-Feb-10 9:27
professionalAbhishek Sur8-Feb-10 9:27 
GeneralRe: getting the full file path from a FileUpload control in Mozilla Pin
ashutosh kumar jha8-Feb-10 20:57
ashutosh kumar jha8-Feb-10 20:57 
Dear sir,
basically i want to pass a complete local file path in a method which can be post a file in different server(means i want to upload a file on multiple server at a time, thats why i used ftp class in asp.net to upload the file, it is working Fine in Internet Explorer but not work with Mozila).

My Code Function is

public void uploadFileUsingFTP(string CompleteFTPPath, string CompleteLocalPath, string UName, string PWD)
{
//Create a FTP Request Object and Specfiy a Complete Path
FtpWebRequest reqObj = (FtpWebRequest)WebRequest.Create(CompleteFTPPath);
//Call A FileUpload Method of FTP Request Object
reqObj.Method = WebRequestMethods.Ftp.UploadFile;
//If you want to access Resourse Protected You need to give User Name and PWD
reqObj.Credentials = new NetworkCredential(UName, PWD);
//FileStream object read file from Local Drive
FileStream streamObj = File.OpenRead(CompleteLocalPath);
//Store File in Buffer
byte[] buffer = new byte[streamObj.Length + 1];
//Read File from Buffer
streamObj.Read(buffer, 0, buffer.Length);
//Close FileStream Object Set its Value to nothing
streamObj.Close();
//Upload File to ftp://localHost/ set its object to nothing
reqObj.GetRequestStream().Write(buffer, 0, buffer.Length);
}
ashutosh kumar jha

GeneralRe: getting the full file path from a FileUpload control in Mozilla Pin
Abhishek Sur9-Feb-10 10:00
professionalAbhishek Sur9-Feb-10 10:00 
Questiongridview pagination Pin
FEMDEV8-Feb-10 6:28
FEMDEV8-Feb-10 6:28 
AnswerRe: gridview pagination Pin
Vimalsoft(Pty) Ltd8-Feb-10 19:48
professionalVimalsoft(Pty) Ltd8-Feb-10 19:48 
AnswerRe: gridview pagination Pin
Gaurav Dudeja India8-Feb-10 19:54
Gaurav Dudeja India8-Feb-10 19:54 
GeneralRe: gridview pagination Pin
FEMDEV11-Feb-10 3:33
FEMDEV11-Feb-10 3:33 
Questionbody Onload Looping.. Pin
Hema Bairavan8-Feb-10 2:30
Hema Bairavan8-Feb-10 2:30 
AnswerRe: body Onload Looping.. Pin
Not Active8-Feb-10 2:50
mentorNot Active8-Feb-10 2:50 

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.