Yes Thank you .
It does not give any time out error i have used this code
string filename = string.Empty;
string flname = string.Empty;
string fileext = System.IO.Path.GetExtension(attachment_FileUpload.PostedFile.FileName).ToLower();
if (fileext != string.Empty)
{
string nameId = Guid.NewGuid().ToString();
nameId = nameId.Substring(0, 6);
filename = "attachment" + "-" + nameId + fileext;
attachment_FileUpload.PostedFile.SaveAs(Server.MapPath("../Images/Mail/" + filename));
flname = Server.MapPath("../Images/Mail/" + filename);
}
string mailBcc = ConfigurationManager.AppSettings["mailbcc"].ToString();
pBAL.SendMail("", toaddress_txt.Text.Trim(), subject_txt.Text, emailcontent_txt.Text, mailBcc, "", flname);
if (orderid_hfld.Value == "0")
{
Clr();
submit_btn.Visible = true;
}
info_div.Attributes.Add("class", "information");
Popheading_Lbl.Text = "Successful Message";
PopMsg_Lbl.Text = "Dedicated Order has been created successfully and mail send to charter";
PopupOk_Btn.Focus();
popupmsg_ajxmpe.Show();
mail_div.Visible = false;
//chkchartername_lbl.Text = string.Empty;
//chkcharterid_lbl.Text = string.Empty;
attachment_FileUpload.Dispose();