Category Archives: Programming

Fill LINQ data to a data table in C#

Load LINQ data to a variable varlist of data type var. Pass the variable varlist to the below function. public DataTable LINQToDataTable<T>(IEnumerable<T> varlist) { DataTable dtReturn = new DataTable(); //Column names PropertyInfo[] oProps = null; if (varlist == null) return … Continue reading

Posted in C#, Programming | Tagged , , , | Leave a comment

File path not available for file control in firefox

For some security reasons modern web browsers will return only file name instead of file name with directory path from client computer. To upload a file to the server from client computer you can use the SaveAs method of file … Continue reading

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