Click here to Skip to main content
15,921,774 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: schedular last day of the month Pin
Ashfield2-Sep-08 21:04
Ashfield2-Sep-08 21:04 
QuestionWeb.HttpException: The transport lost its connection to the server Pin
HatakeKaKaShi2-Sep-08 18:27
HatakeKaKaShi2-Sep-08 18:27 
AnswerRe: Web.HttpException: The transport lost its connection to the server Pin
AhsanS2-Sep-08 18:52
AhsanS2-Sep-08 18:52 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
HatakeKaKaShi2-Sep-08 19:02
HatakeKaKaShi2-Sep-08 19:02 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
AhsanS2-Sep-08 19:06
AhsanS2-Sep-08 19:06 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
HatakeKaKaShi2-Sep-08 19:11
HatakeKaKaShi2-Sep-08 19:11 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
AhsanS2-Sep-08 19:12
AhsanS2-Sep-08 19:12 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
HatakeKaKaShi2-Sep-08 19:18
HatakeKaKaShi2-Sep-08 19:18 
I upload using fileupload in the toolbox

if (FileUpload5.PostedFile.FileName.Length > 0)
{
FileUpload5.PostedFile.SaveAs(strBaseDir + Path.GetFileName(FileUpload5.PostedFile.FileName));
attach1 = strBaseDir + Path.GetFileName(FileUpload5.PostedFile.FileName);
}
if (FileUpload1.PostedFile.FileName.Length > 0)
{
FileUpload1.PostedFile.SaveAs(strBaseDir + Path.GetFileName(FileUpload1.PostedFile.FileName));
attach2 = strBaseDir + Path.GetFileName(FileUpload1.PostedFile.FileName);
}

then i send

MailMessage mail = new MailMessage();

mail.To = mailto;

mail.From = mailfrom;

mail.Cc = strUserId + System.Configuration.ConfigurationSettings.AppSettings.Get("CCList");

mail.Subject = subject;

mail.BodyFormat = MailFormat.Html;

mail.Body = body;

if (attach1 != "")
{
MailAttachment attachFile1 = new MailAttachment(attach1);

mail.Attachments.Add(attachFile1);
}
if (attach2 != "")
{
MailAttachment attachFile2 = new MailAttachment(attach2);
mail.Attachments.Add(attachFile2);
}
if (attach3 != "")
{
MailAttachment attachFile3 = new MailAttachment(attach3);
mail.Attachments.Add(attachFile3);
}
if (attach4 != "")
{
MailAttachment attachFile4 = new MailAttachment(attach4);
mail.Attachments.Add(attachFile4);
}
if (attach5 != "")
{
MailAttachment attachFile5 = new MailAttachment(attach5);
mail.Attachments.Add(attachFile5);
}

SmtpMail.SmtpServer = System.Configuration.ConfigurationSettings.AppSettings.Get("SmtpServer");

SmtpMail.Send(mail);

KaKaShi HaTaKe
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
AhsanS2-Sep-08 19:32
AhsanS2-Sep-08 19:32 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
HatakeKaKaShi2-Sep-08 19:40
HatakeKaKaShi2-Sep-08 19:40 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
AhsanS2-Sep-08 20:26
AhsanS2-Sep-08 20:26 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
HatakeKaKaShi2-Sep-08 20:30
HatakeKaKaShi2-Sep-08 20:30 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
AhsanS2-Sep-08 20:41
AhsanS2-Sep-08 20:41 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
HatakeKaKaShi2-Sep-08 21:08
HatakeKaKaShi2-Sep-08 21:08 
GeneralRe: Web.HttpException: The transport lost its connection to the server Pin
AhsanS2-Sep-08 21:14
AhsanS2-Sep-08 21:14 
QuestionCreate asp page that save word document into the web page Pin
molivia2-Sep-08 16:11
molivia2-Sep-08 16:11 
AnswerRe: Create asp page that save word document into the web page Pin
Gamzun2-Sep-08 16:54
Gamzun2-Sep-08 16:54 
GeneralRe: Create asp page that save word document into the web page Pin
molivia2-Sep-08 17:02
molivia2-Sep-08 17:02 
GeneralRe: Create asp page that save word document into the web page Pin
Gamzun2-Sep-08 18:20
Gamzun2-Sep-08 18:20 
GeneralRe: Create asp page that save word document into the web page Pin
molivia2-Sep-08 18:40
molivia2-Sep-08 18:40 
QuestionFileUpload can't upload huge size document Pin
HatakeKaKaShi2-Sep-08 15:00
HatakeKaKaShi2-Sep-08 15:00 
AnswerRe: FileUpload can't upload huge size document Pin
K.P.Kannan2-Sep-08 15:23
K.P.Kannan2-Sep-08 15:23 
GeneralRe: FileUpload can't upload huge size document Pin
HatakeKaKaShi2-Sep-08 15:49
HatakeKaKaShi2-Sep-08 15:49 
AnswerRe: FileUpload can't upload huge size document Pin
Blue_Boy2-Sep-08 20:06
Blue_Boy2-Sep-08 20:06 
QuestionDropdown List Control Inop? Pin
PDTUM2-Sep-08 13:12
PDTUM2-Sep-08 13:12 

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.