public void PageSaving(PageSavingArgs args) { // Specify name of the output file for the current page. args.PageFileName = string.Format(MyDir + "Page_{0}.html", args.PageIndex); } }