This file contains 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
var predicate = PredicateBuilder.False<Donation>(); | |
var selectedItemList = new List<string>(); | |
foreach (ListItem item in lstfilter_keywords.Items) | |
{ | |
if (item.Selected) | |
{ | |
predicate = predicate.Or(p => p.Keywords.name.ToLower().Contains(item.Value.ToLower())); |
This file contains 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
function reportError(errorMessage) | |
{ | |
if(console != undefined) { | |
console.log(errorMessage); | |
} | |
else { | |
alert(errorMessage); | |
} | |
} |
This file contains 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
<webServices> | |
<protocols> | |
<add name="HttpGet" /> | |
<add name="HttpPost"/> |
This file contains 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
<httpProtocol> | |
<customHeaders> | |
<add name="X-UA-Compatible" value="IE=9" /> | |
<add name="Access-Control-Allow-Origin" value="*" /> | |
<add name="Access-Control-Allow-Headers" value="Content-Type" /> | |
</customHeaders> |
This file contains 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
if(window.console != undefined) | |
{ | |
console.log('test!'); | |
} |
This file contains 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
$("input.myTextField").bindWithDelay("keyup", function() { | |
console.info('We\'re now ready to validate the password'); | |
passwordValidationFunction(this.val()); | |
}, 1000); |
This file contains 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
<siteMap defaultProvider="UmbracoSiteMapProvider" enabled="true"> | |
<providers> | |
<clear /> | |
<add name="UmbracoSiteMapProvider" type="umbraco.presentation.nodeFactory.UmbracoSiteMapProvider" defaultDescriptionAlias="description" securityTrimmingEnabled="true" /> | |
</providers> | |
</siteMap> |
This file contains 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
using System.Collections.Generic; | |
using System.Globalization; | |
public static IEnumerable<string> GetCountryList() | |
{ | |
List<string> cultureList = new List<string>(); | |
CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures); | |
foreach (CultureInfo culture in cultures) |
This file contains 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
HSSFTextbox myTextBox = _patriarch.CreateTextbox(anchorpoint) as HSSFTextbox; | |
myTextBox.String = new HSSFRichTextString("Your text goes in here!"); |
This file contains 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
IClientAnchor anchorpoint = new HSSFClientAnchor(0, 0, 1023, 255, startingColNum, startingRowNum, endColNum, endRowNum); |
NewerOlder