Archive for the Category dotnet

 
 

Sending email in .NET with System.Web.Mail

The site is entirely devoted to sending of mail from .NET with use System.Web.Mail . Contains the big number of articles and very detailed FAQ.

Complete FAQ for sending email in .NET with System.Web.Mail

Installing Enterprise Library on shared web hosting

If you develop web applications which use Enterprise Library that it is necessary to prepare it, but you will need to recompile the code .Just go into the Project Properties dialog for the Common project, and under Configuration Properties\Build, find the Conditional Compilation Properties property and remove ;USEWMI;USEEVENTLOG;USEPERFORMANCECOUNTER . Once you recompile, the  Enterprise Library will be ready for deployment.

DotNetOpenMail

DotNetOpenMail is an open-source library written in C# for sending HTML and plain-text email with attachments using Microsoft’s .Net platform.

How to catch Exception in Background Worker

Juval Lowy provides the BackgroundWorker component to facilitate easy asynchronous invocation with Windows Forms in Net 1.1, but when an exception occurs in BackgroundWorker(DoWork event) - it behaves as though happened nothing.It is possible to understand what happened just by analyzing Error
argument as shown below:

private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
{
 throw new ApplicationException("exception");
}
private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
 string message = string.Empty;
 if( e.Cancelled )
 {
   message = "Cancelled";
 }
 else
 {
  if(e.Error !=null)
  { // analyze error here
    message = "Error";
  }
  else
  {
    message = "Stoped";
  }
 }
 
 MessageBox.Show(message);
}

DataSet Links

Interesting information about DataSet

DataSet FAQ - By ObjectSharp

Nix the DataSet?????? - Andrew Conrad

DataSets Are Not Evil - Jelle Druyts

Returning DataSets from WebServices is the Spawn of Satan and Represents All That Is Truly Evil in the World - Scott Hanselman

DataSets vs. Collections - Dino Esposito


Page 9 of 14« First...7891011...Last »