Category Archives: Web Development

Preserving milliseconds when passing dates around front end

2016-06-08 Instead of passing the datetime pass the datetime.Ticks which is a (long) numeric value so the complete datetime value will be preserved. Then convert ticks back to datetime in the server (controller \ action method).

Posted in ASP.Net, ASP.NET MVC, C#.Net, Web Development | Tagged , , , | Leave a comment

You need a 64bit text editor to open IIS config files on a 64bit computer

18/09/2015 If you wanted to open or edit IIS 7+ config files on a 64bit computer and if you try to use an editor like 32bit notepad++ then you would get a random error from windows. The error I received was … Continue reading

Posted in Web Development | Leave a comment

Browser and length independent CSV download code

17-09-2015 Downloading a csv string as a file on browser can be troublesome. Some techniques don’t work for very long CSV strings and some techniques only work on some browsers. Below code is tested on Internet Explorer 11, Firefox 27.0.1, … Continue reading

Posted in Web Development | Tagged , | Leave a comment

html css it is not possible to have inline styles for different aspects of an element like hover, and visited

You cannot specify css styles for different aspects of an HTML element. e.g. I wanted to do something like this. But you CAN NOT do this. Unfortunately the only solution is to write a custom css class and use it. Like … Continue reading

Posted in General, Web Development | Tagged , , , | Leave a comment

Javascript define objects with sub objects in single line

var tmp = {sub:{title:’titlex’, alt:’altx’}, viewName:’xxx’};   “sub” is the sub object that has properties, title and alt. ViewName is a property of the parent class.

Posted in Web Development | Tagged , , | Leave a comment