Snippets

Case insensitive search in array | Javascript

Added by Nasir Mahmood updated on Friday, November 17, 2017

JavaScript provide a Method indexOf() which is used to search object from array but this is case sensitive.

Jquery provide a method jQuery.inArray() To search object in array but this is case sensitive also i.e “a” is not equal to “A”.


Generic List Shuffler in C#

Added by Nasir Mahmood updated on Friday, November 17, 2017

Following is small snippet which is the implementation of Fisher–Yates shuffle in csharp. This is generic extension method so we can use it for any type of list.


Reload IFrame Url using Jquery

Added by Nasir Mahmood updated on Friday, November 17, 2017

Previously while working on Online Razor Editor I need to use IFrame for page preview, since code and preview are in separate tabs, so I decided to reload iframe contents on tab shown event. Now problem was how I can do this from client side using jquery? 

This is modified and compact code of original solution.


Change form action using jquery

Added by Nasir Mahmood updated on Friday, November 17, 2017

Previously while working on Online Sqlite Management studio, I need to use same form data against multiple actions.From server side on can not do that so solution was to use client side and jquery is our friend to handle such problems?


Convert char array to string | .Net

Added by Nasir Mahmood updated on Friday, November 17, 2017

Previously while working on a project, I need to convert array of chars to string, I shocked to use ToString() function which return System.Char[] instead of actual string.


About

29 Tutorials
25 Snippets
6 Products

More

Contact Us

Contact us

Stay Connected