This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MyCompany.Web | |
{ | |
public class MyCompanySiteMapVisibilityProvider : MvcSiteMapProvider.SiteMapNodeVisibilityProviderBase | |
{ | |
public override bool IsVisible(ISiteMapNode node, IDictionary<string, object> sourceMetadata) | |
{ | |
if (node == null) | |
{ | |
return true; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'============================== | |
'Remove old backups | |
'http://gordondurgha.com | |
'============================= | |
'Definitions | |
iDaysOld = 3 | |
strExtension = ".bak" | |
sDirectoryPath = "D:\MSSQL\Backups\" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This example shows how to read and excel file using the Koogra library (http://sourceforge.net/projects/koogra/) | |
// Supports .xls and .xlsx example | |
public static string ReadExcelContent(string filePath) | |
{ | |
uint rowNum = 0; | |
uint colNum = 0; | |
var data = new StringBuilder(); | |
try | |
{ |
NewerOlder