Nested Loop From A Folder to Get Files In Servers

Nested loop to do whatever you need to do with the files and folders in the server remotely using ManagementScope. This function will loop the first layer or loop nested until the end. Below example is to generate a html nested list:

Disable a Textbox when Text Change In WinForm Textbox

When text changed method being trigger, getting the updated value from 'sender' to execute requirements.

Get A List of Objects of Files and Sub Directories in a Directory

Getting all files and directories within a directory: input parameter: string directory path and empty list string to add file paths Calling the method: Updated way to do the same process using recursive method: Here

Build a Lambda Expression Dynamically For Sort Acs/Desc

I have tried writing my own basic dynamic lambda expression for sorting the columns in grid panel. There are columns with different property type, and a few link to other object. In this example Branch column (in computer object as a property) is link to Lookup object. I want to order by display field in …

Continue reading Build a Lambda Expression Dynamically For Sort Acs/Desc

Connect to WMI remotely to Copy File from Server to Local Computer

Below a function which remote to server to copy a file to local pc through Windows Management Infrastructure (WMI).  

How to use C# LinQ similar method in JavaScript

Below is a simple example to help understand the usage of the code: var arr = [ {name: 'a', val:1}, {name:'b', val:2}, {name:'c', val:3}, {name:'d', val:4}, {name:'e', val:5}, {name:'f', val:6}, ]; //jquery map var nm = $.map(arr,function(v){ return v.val; }); $("#box").html("jquery map: "+nm); //array map var nm = arr.map(function(v){ return v.val; }); $("#box2").html("array map: "+nm); …

Continue reading How to use C# LinQ similar method in JavaScript

Simple way of adding a row of textboxes dynamically for input

How to add a row of column dynamically when user click the link to add new row? Below illustration were done in MVC framework whereby as it is not as easy as using the control directly in web form. These concerns are populate data into the drop down list, passing back all newly added data …

Continue reading Simple way of adding a row of textboxes dynamically for input