Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# toolbar Pin
Judah Gabriel Himango15-Aug-07 4:27
sponsorJudah Gabriel Himango15-Aug-07 4:27 
QuestionHow I can Convert the Language Type Pin
Thaer Hamael15-Aug-07 2:53
Thaer Hamael15-Aug-07 2:53 
AnswerRe: How I can Convert the Language Type Pin
Giorgi Dalakishvili15-Aug-07 3:02
mentorGiorgi Dalakishvili15-Aug-07 3:02 
GeneralRe: How I can Convert the Language Type Pin
Thaer Hamael15-Aug-07 3:10
Thaer Hamael15-Aug-07 3:10 
GeneralRe: How I can Convert the Language Type Pin
leckey15-Aug-07 3:12
leckey15-Aug-07 3:12 
GeneralRe: How I can Convert the Language Type Pin
Giorgi Dalakishvili15-Aug-07 3:12
mentorGiorgi Dalakishvili15-Aug-07 3:12 
AnswerRe: How I can Convert the Language Type Pin
Dan Neely15-Aug-07 3:35
Dan Neely15-Aug-07 3:35 
QuestionUploading two files Pin
minniemooo15-Aug-07 2:52
minniemooo15-Aug-07 2:52 
Hi,
I have the following code to upload one file.

private void cmdUpload_Click(object sender, System.EventArgs e)
{
if (( File1.PostedFile != null) && (File1.PostedFile.ContentLength > 0))
{
//determine file name
string sFileName = System.IO.Path.GetFileName(File1.PostedFile.FileName);
try
{
if (File1.PostedFile.ContentLength <= lMaxFileSize)
{
//Save File on disk
File1.PostedFile.SaveAs(sFileDir + sFileName);
lblMessage.Visible=true;
lblMessage.Text="File: " + sFileDir + sFileName + " Uploaded Successfully";
}
else //reject file
{
lblMessage.Visible=true;
lblMessage.Text="File Size if Over the Limit of " + lMaxFileSize ;
}
}
catch(Exception)//in case of an error
{
lblMessage.Visible = true;
lblMessage.Text="An Error Occured. Please Try Again!";
DeleteFile(sFileDir + sFileName);
}
}
}


I want to upload two files intead of one.

Please help.

QuestionOpen a text file, apply formatting(inclulding color) before it displays in RichTextBox Pin
solutionsville15-Aug-07 2:18
solutionsville15-Aug-07 2:18 
QuestionModifying an existing file Pin
Rocky#15-Aug-07 1:40
Rocky#15-Aug-07 1:40 
AnswerRe: Modifying an existing file Pin
led mike15-Aug-07 4:13
led mike15-Aug-07 4:13 
GeneralRe: Modifying an existing file Pin
Rocky#15-Aug-07 4:58
Rocky#15-Aug-07 4:58 
GeneralRe: Modifying an existing file Pin
led mike15-Aug-07 5:15
led mike15-Aug-07 5:15 
GeneralRe: Modifying an existing file Pin
Rocky#15-Aug-07 18:45
Rocky#15-Aug-07 18:45 
GeneralRe: Modifying an existing file Pin
Rocky#15-Aug-07 18:59
Rocky#15-Aug-07 18:59 
GeneralRe: Modifying an existing file Pin
led mike16-Aug-07 4:54
led mike16-Aug-07 4:54 
GeneralRe: Modifying an existing file Pin
Rocky#16-Aug-07 19:34
Rocky#16-Aug-07 19:34 
GeneralRe: Modifying an existing file Pin
led mike17-Aug-07 5:05
led mike17-Aug-07 5:05 
GeneralRe: Modifying an existing file Pin
Rocky#17-Aug-07 19:21
Rocky#17-Aug-07 19:21 
QuestionWindows Forms GUI App to Windows App Pin
VK-Cadec15-Aug-07 1:18
VK-Cadec15-Aug-07 1:18 
AnswerRe: Windows Forms GUI App to Windows App Pin
Scott Dorman15-Aug-07 3:53
professionalScott Dorman15-Aug-07 3:53 
GeneralRe: Windows Forms GUI App to Windows App Pin
VK-Cadec15-Aug-07 3:57
VK-Cadec15-Aug-07 3:57 
GeneralRe: Windows Forms GUI App to Windows App Pin
Scott Dorman15-Aug-07 4:34
professionalScott Dorman15-Aug-07 4:34 
QuestionPlease help me in login logic Pin
Mohammed Elkholy15-Aug-07 1:10
Mohammed Elkholy15-Aug-07 1:10 
AnswerRe: Please help me in login logic Pin
Christian Graus15-Aug-07 1:15
protectorChristian Graus15-Aug-07 1:15 

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.