Articles - Tips & Tricks

0

Like

I have a web application running on my server. And I needed to develop a small utility application which has to do some work in database, and I don't want to write same database credentials or connection strings(and some other additional app-settings) in this new console application, I want it to read settings from same web.config file. ...Read more
Posted by: Muhammad Idrees
On 16 Apr 2018 | Views: 10 | Categories: XML, Visual Studio, Tips & Tricks, C#
0

Like

Few days back I got stuck in this situation, I was developing PHP web application with Laravel 5.6 framework, the problems comes when I tried to connect with MS SQL Server rather than MySQL or MariaDB (that comes as default in XAMPP package), It started giving me error like driver not found. ...Read more
Posted by: Muhammad Idrees
On 18 Mar 2018 | Views: 59 | Categories: Tips & Tricks, Other
0

Like

There are multiple ways to validate user input string in order to allow only numbers. Lets say we have a string in variable myInput, following are some tips you can use to check if the input string is only contains numbers. ...Read more
Posted by: Muhammad Idrees
On 17 Jan 2018 | Views: 152 | Categories: Visual Studio, Tips & Tricks, C#, ASP.NET
0

Like

Enumeration allows you to define named integral constants that could be hold by a variable, which can be used in client code to clearly specify the valid values for a variable, because in Visual Studio, IntelliSense lists the defined values. ...Read more
Posted by: Muhammad Idrees
On 21 Dec 2017 | Views: 208 | Categories: Visual Studio, Tips & Tricks, C#, Microsoft.net
0

Like

In this post I will explain how to draw arrows among array items' positions before and after sorting using HTML5 canvas. We have two arrays, array is the original unsorted array and array2 is the final sorted one. And we want to display both arrays on screen with drawing arrows to show the possible movement of items in positions inside the array. ...Read more
Posted by: Muhammad Idrees
On 13 Aug 2017 | Views: 144 | Categories: Tips & Tricks, Patterns, Other, ASP.NET
0

Like

In this post we will see different ways to calculate running total using T-SQL. I am using Microsoft SQL SERVER 2008 R2. ...Read more
Posted by: Muhammad Idrees
On 06 Aug 2017 | Views: 150 | Categories: Tips & Tricks, Patterns, Other, Database (SQL Server)
0

Like

In this post I will share the code how to detect the change event for HTML file input. We are supporting an old application written with AngularJS, and encountered this problem. If you are using default ng-change attribute, it will not work in AngularJS because of no binding support for file input control. ...Read more
Posted by: Muhammad Idrees
On 26 Jul 2017 | Views: 171 | Categories: Visual Studio, Tips & Tricks, Other, ASP.NET
0

Like

In this post I will share C# code to remove comments from XML string or file. I am using XMl file in this example: I found two possible ways to achieve this. ...Read more
Posted by: Muhammad Idrees
On 26 Jul 2017 | Views: 151 | Categories: Visual Studio, Tips & Tricks, C#, Microsoft.net
0

Like

The question I received from one of my colleagues, how to open new page from server side in a new window. There could be two possible ways to get it work. ...Read more
Posted by: Muhammad Idrees
On 26 Jul 2017 | Views: 172 | Categories: Tips & Tricks, C#, ASP.NET, Microsoft.net
0

Like

In this post, I will share C# code to delete files from specific directory, with the condition that only files which are older than N number of Days or Month or any other time unit. Why I come to this code because recently we faced this problem because of not deleting the older files. ...Read more
Posted by: Muhammad Idrees
On 26 Jul 2017 | Views: 131 | Categories: Win Forms, Tips & Tricks, Other, C#
Page 1 of 13
Other lins

.Net Techies
Other lins