Click here to Skip to main content
15,914,225 members
Home / Discussions / C#
   

C#

 
GeneralRe: horizontal scroll bar on the panel.... Pin
Henry Minute14-Jul-09 0:43
Henry Minute14-Jul-09 0:43 
QuestionMicrosoft Visual C++ Library Pin
GauravKP13-Jul-09 23:35
professionalGauravKP13-Jul-09 23:35 
AnswerRe: Microsoft Visual C++ Library Pin
stancrm13-Jul-09 23:40
stancrm13-Jul-09 23:40 
AnswerRe: Microsoft Visual C++ Library Pin
Manas Bhardwaj13-Jul-09 23:43
professionalManas Bhardwaj13-Jul-09 23:43 
QuestionUploading Files to HTTPS site [modified] Pin
The_Collector13-Jul-09 23:28
The_Collector13-Jul-09 23:28 
AnswerRe: Uploading Files to HTTPS site Pin
Manas Bhardwaj13-Jul-09 23:39
professionalManas Bhardwaj13-Jul-09 23:39 
GeneralRe: Uploading Files to HTTPS site Pin
The_Collector14-Jul-09 2:16
The_Collector14-Jul-09 2:16 
GeneralRe: Uploading Files to HTTPS site Pin
The_Collector14-Jul-09 18:06
The_Collector14-Jul-09 18:06 
HI,

to explain more... a popup window will appear like "http://www.zoneedit.com/auth/"

i'll be task to develop a program which will upload a file automatically on a given time without human intervention... I have d user & password but i dont know how to do it.... I made a lot of efforts but none is working...

below is my coding i used..

private void btnUpload_Click(object sender, EventArgs e)
{

try
{
System.Net.ServicePointManager.CertificatePolicy = new MyPolicy();

string uploadData = "user=" + TxtUser.Text + "&password=" + TxtPassword.Text; ;
ASCIIEncoding encoding = new ASCIIEncoding();
byte[] uploadByte = encoding.GetBytes(uploadData);

// Create the HttpWebRequest and set its properties

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(TxtSite.Text);
request.ContentLength = uploadData.Length;
request.ContentType = "application/x-www-form-urlencoded";
request.Method = "POST";
request.Timeout = 20000;

// Get a Stream from the HttpWebRequest and write login info to it
Stream uploadStream = request.GetRequestStream();
uploadStream.Write(uploadByte, 0, uploadByte.Length);



WebClient Client = new WebClient();
Client.UploadFile(TxtSite.Text, TxtFile.Text);
}
catch (Exception expx)
{
MessageBox.Show(expx.Message);
}


}
tnx in advance

xxx

QuestionMaking a video?? Pin
Muammar©13-Jul-09 23:28
Muammar©13-Jul-09 23:28 
AnswerRe: Making a video?? Pin
Manas Bhardwaj13-Jul-09 23:44
professionalManas Bhardwaj13-Jul-09 23:44 
Questionhow to generate only 0's and 1's for given times.... Pin
spalanivel13-Jul-09 23:28
spalanivel13-Jul-09 23:28 
AnswerRe: how to generate only 0's and 1's for given times.... Pin
Manas Bhardwaj13-Jul-09 23:49
professionalManas Bhardwaj13-Jul-09 23:49 
GeneralRe: how to generate only 0's and 1's for given times.... Pin
spalanivel14-Jul-09 0:03
spalanivel14-Jul-09 0:03 
AnswerRe: how to generate only 0's and 1's for given times.... Pin
Luc Pattyn14-Jul-09 1:18
sitebuilderLuc Pattyn14-Jul-09 1:18 
GeneralRe: how to generate only 0's and 1's for given times.... Pin
benjymous14-Jul-09 1:44
benjymous14-Jul-09 1:44 
GeneralRe: how to generate only 0's and 1's for given times.... Pin
Luc Pattyn14-Jul-09 1:48
sitebuilderLuc Pattyn14-Jul-09 1:48 
QuestionChessprogram Pin
nerosdk7113-Jul-09 23:13
nerosdk7113-Jul-09 23:13 
AnswerRe: Chessprogram Pin
Manas Bhardwaj13-Jul-09 23:19
professionalManas Bhardwaj13-Jul-09 23:19 
AnswerRe: Chessprogram Pin
Blue_Boy13-Jul-09 23:19
Blue_Boy13-Jul-09 23:19 
AnswerRe: Chessprogram Pin
Luc Pattyn14-Jul-09 1:35
sitebuilderLuc Pattyn14-Jul-09 1:35 
Questionneed help. Pin
mjawadkhatri13-Jul-09 21:48
mjawadkhatri13-Jul-09 21:48 
AnswerRe: need help. Pin
Nagy Vilmos13-Jul-09 21:54
professionalNagy Vilmos13-Jul-09 21:54 
AnswerRe: need help. Pin
Tom Deketelaere13-Jul-09 22:01
professionalTom Deketelaere13-Jul-09 22:01 
GeneralRe: need help. Pin
mjawadkhatri13-Jul-09 22:12
mjawadkhatri13-Jul-09 22:12 
GeneralRe: need help. Pin
Thomas Krojer13-Jul-09 22:17
Thomas Krojer13-Jul-09 22:17 

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.