Wednesday, January 14, 2015

Force filedownload

response.AppendHeader("content-disposition", "attachment; filename=" + FileDownloadName);

Add an action to a form with jquery

$("#blah").get(0).setAttribute('action', blahURL);

Monday, December 1, 2014

Passing jquery pattern

works because this works

(function (a) {alert(a);})("kl")


Thursday, November 20, 2014

Wednesday, November 12, 2014

app cmd script to allow ipv4 access on iis

%systemroot%\system32\inetsrv\AppCmd.exe set config "blah/subblah" /section:ipsecurity /+"[ipaddress='105.536.551.514',allowed='true']" /commit:appHost

Thursday, October 30, 2014

c# threading questions


  • does a blocked thread use CPU resources?