Click here to Skip to main content
15,881,139 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Problem setting focus dynamically Pin
gurdeep_67723-Jul-08 22:05
gurdeep_67723-Jul-08 22:05 
Questionsession Pin
nithydurai23-Jul-08 20:23
nithydurai23-Jul-08 20:23 
AnswerRe: session Pin
N a v a n e e t h23-Jul-08 20:37
N a v a n e e t h23-Jul-08 20:37 
GeneralRe: session Pin
nithydurai23-Jul-08 20:44
nithydurai23-Jul-08 20:44 
GeneralRe: session Pin
N a v a n e e t h23-Jul-08 20:48
N a v a n e e t h23-Jul-08 20:48 
GeneralRe: session Pin
eyeseetee23-Jul-08 21:40
eyeseetee23-Jul-08 21:40 
AnswerRe: session Pin
Abhijit Jana23-Jul-08 20:40
professionalAbhijit Jana23-Jul-08 20:40 
Questionmailserver will down have to fire again Pin
Member 387988123-Jul-08 20:03
Member 387988123-Jul-08 20:03 
Hi i am sending mail to different ids...,
Everything going on well....,

I am going to make this application to exe and put it in schedular task...,
This things will execute automatically...,

Now my probs is suppose mailserver is down...,
Then it will be probs in mailsend...,

So in that case how to handle the code it mean if the mailserver will down or mail didnt send properly...,

Then it have to be fire again after some minutes or some other condition have to do how to do that?

This is my code:

DirectoryInfo dInfo = new DirectoryInfo(mypath);
DirectoryInfo[] dInfos = dInfo.GetDirectories();
foreach (DirectoryInfo d in dInfos)
{
MailMessage mailMessage = new MailMessage();
MailAttachment attach = null;

mailMessage.From = "Magesh@Test.com";
mailMessage.To = d.Name;
mailMessage.Subject = "Hi";
//mailMessage.Body = "Hi This One Is For Testing
FileInfo[] fInfos = d.GetFiles();
foreach (FileInfo f in fInfos)
{
attach = new MailAttachment(f.FullName);
mailMessage.Attachments.Add(attach);
}
SmtpMail.Send(mailMessage);

mailMessage.To = "";
attach = null;
}

Thanks & Regards,
NeW OnE,
please don't forget to vote on the post

AnswerRe: mailserver will down have to fire again Pin
Sam Xavier24-Jul-08 22:42
Sam Xavier24-Jul-08 22:42 
Questionwat is the best solution of getting values from the data base to the grid view. Pin
lakshmichawala23-Jul-08 19:51
lakshmichawala23-Jul-08 19:51 
AnswerRe: wat is the best solution of getting values from the data base to the grid view. Pin
Venkatesh Mookkan23-Jul-08 20:02
Venkatesh Mookkan23-Jul-08 20:02 
GeneralRe: wat is the best solution of getting values from the data base to the grid view. Pin
lakshmichawala23-Jul-08 20:17
lakshmichawala23-Jul-08 20:17 
AnswerRe: wat is the best solution of getting values from the data base to the grid view. Pin
Imran Khan Pathan23-Jul-08 20:34
Imran Khan Pathan23-Jul-08 20:34 
GeneralRe: wat is the best solution of getting values from the data base to the grid view. Pin
lakshmichawala23-Jul-08 20:38
lakshmichawala23-Jul-08 20:38 
GeneralRe: wat is the best solution of getting values from the data base to the grid view. Pin
Imran Khan Pathan23-Jul-08 20:56
Imran Khan Pathan23-Jul-08 20:56 
GeneralRe: wat is the best solution of getting values from the data base to the grid view. Pin
N a v a n e e t h23-Jul-08 20:40
N a v a n e e t h23-Jul-08 20:40 
AnswerRe: wat is the best solution of getting values from the data base to the grid view. Pin
gurdeep_67723-Jul-08 22:09
gurdeep_67723-Jul-08 22:09 
AnswerRe: wat is the best solution of getting values from the data base to the grid view. Pin
bommareddy20023-Jul-08 23:59
bommareddy20023-Jul-08 23:59 
QuestionAdd Sheet Dynamically while generating Report from ASP.Net in Excel Format. Pin
Binod K23-Jul-08 19:40
Binod K23-Jul-08 19:40 
AnswerRe: Add Sheet Dynamically while generating Report from ASP.Net in Excel Format. Pin
Member 387988123-Jul-08 19:47
Member 387988123-Jul-08 19:47 
Questionhow to divide each row of table in 48 cells Dynamically Pin
Rameez Raja23-Jul-08 17:24
Rameez Raja23-Jul-08 17:24 
AnswerRe: how to divide each row of table in 48 cells Dynamically Pin
Imran Khan Pathan23-Jul-08 19:07
Imran Khan Pathan23-Jul-08 19:07 
QuestionStartup lag.. Pin
Super Lloyd23-Jul-08 14:08
Super Lloyd23-Jul-08 14:08 
AnswerRe: Startup lag.. Pin
N a v a n e e t h23-Jul-08 19:43
N a v a n e e t h23-Jul-08 19:43 
GeneralRe: Startup lag.. Pin
Super Lloyd23-Jul-08 19:57
Super Lloyd23-Jul-08 19:57 

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.