Home > Products > CSHTMLDiff Control > ASP.NET  

The following sample uses the CSHTMLDiff Control in an ASP.NET 2.0 web form.

  protected void Page_Load(object sender, EventArgs e)
{
CSHTMLCONTROLVCLib.
CSHTMLDiffClass diffCtrl = new CSHTMLCONTROLVCLib.CSHTMLDiffClass();
string BaseFile = @"C:\Demo\Base.htm";
string RevisedFile = @"C:\Demo\New.htm";
string outputFile = @"C:\OutputDir\output.htm";

diffCtrl.SetTempDir(@"C:\DiffCtrlTmp");
diffCtrl.DiffFiles(BaseFile, RevisedFile, outputFile,
false);
Response.WriteFile(outputFile );
}

 

 Click to run the ASP.NET demo on our server

Important: The evaluation version of the CSHTMLDiff Control doesn't run under IIS. In order to evaluate the expected output results, you can call the 'DiffFiles' function in any programming language.
If you wish to evaluate the control under IIS, please email us and we will send you a demo version for this purpose.

To download a .NET solution containing both ASP.NET and WinForm sample projects, click here.

 


Copyright © 2001-2010 ComponentSoftware Inc.
Names used throughout this site are trademarks of their respective companies.
Last modified:
February 02, 2010