Click here to Skip to main content
15,877,051 members
Home / Discussions / ASP.NET
   

ASP.NET

 
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 
QuestionCustom textbox control problem in Firefox and Chrome [modified] Pin
Danpeking8-Feb-10 1:51
Danpeking8-Feb-10 1:51 
QuestionI wanna make a webpage to find ID or password. Pin
lsh486love8-Feb-10 1:46
lsh486love8-Feb-10 1:46 
AnswerRe: I wanna make a webpage to find ID or password. Pin
Not Active8-Feb-10 2:07
mentorNot Active8-Feb-10 2:07 
AnswerRe: I wanna make a webpage to find ID or password. Pin
sashidhar8-Feb-10 3:22
sashidhar8-Feb-10 3:22 
Questionrestric multiple download concept implemented by rapidshare and hotfile Pin
Tridip Bhattacharjee8-Feb-10 0:31
professionalTridip Bhattacharjee8-Feb-10 0:31 
AnswerRe: restric multiple download concept implemented by rapidshare and hotfile Pin
sashidhar8-Feb-10 0:54
sashidhar8-Feb-10 0:54 
QuestionBlog size Pin
Satish328-Feb-10 0:18
Satish328-Feb-10 0:18 
AnswerRe: Blog size Pin
Abhishek Sur8-Feb-10 9:32
professionalAbhishek Sur8-Feb-10 9:32 
Questionresume large file download? Pin
Tridip Bhattacharjee7-Feb-10 23:53
professionalTridip Bhattacharjee7-Feb-10 23:53 
AnswerRe: resume large file download? Pin
Rhys Jacob7-Feb-10 23:59
Rhys Jacob7-Feb-10 23:59 

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.