Author Archives: Menol

Quick reference for different SQL Joins

                  source: Visual Representation of SQL Joins from codeproject.com

Posted in SQL, SQL Server | Tagged , , | Leave a comment

C# Reflection Code to Search Objects for Fields Properties and Methods and Get Values

2016-07-06 Code below will search for a given named property, field, or method inside a given object. It will search in below order: Properties Fields Methods It will continue to search until it finds a match that holds or returns (for methods) … Continue reading

Posted in C#.Net | Tagged , , , , , , , , , , , , , | Leave a comment

When (or not) to Hyphenate Compound Adjectives

2016-07-06 Use hyphen only when the compound adjective comes before the noun. e.g. 1 – The candidate provided an up-to-date curriculum vitae. 2 – The curriculum vitae provided by the candidate was not up to date. References: dailywritingtips.com/adverbs-and-hyphens english.stackexchange.com

Posted in English Language | Tagged , | Comments Off on When (or not) to Hyphenate Compound Adjectives

C# extension method to check if a string matches any string in given list

2016-06-16

Posted in C#.Net | Tagged , , , , , | Leave a comment

Trigger window.resize event via javascript

2016-06-15 Use below code to trigger window.resize event. This can be helpful to refresh some libraries like Chartist.js when a panel  or a div the control is contained in is expanded. P.S. The above method isn’t supported by Internet explorer (failed on … Continue reading

Posted in Javascript | Tagged , , , | Leave a comment

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

JavaScript Null Coalesce

2016-06-07 Use || similar to ?? in C# example (mvc)

Posted in Javascript | Tagged , | Leave a comment

Congfigure IIS to use later .net frameworks

2016/03/07 When IIS is first installed you will most probably get several errors when trying to launch your asp.net website. This is more prevalent when your application needs a .net framework that is higher than the .net framework version supported … Continue reading

Posted in Software Deployment | Tagged , , , , , | Leave a comment

Robert E. Rubin quote

“Some people are more certain of everything than I am of anything.” ― Robert E. Rubin

Posted in General, Quotes | Leave a comment

Ego is evil

Ego is evil. – Cassian Menol Razeek

Posted in Quotes | Leave a comment