Articles - C#

0

Like

Magic number is a hex number occupying a few bytes at the beginning of the file and indicates the type of content, but is not visible to users. ...Read more
Posted by: Muhammad Idrees
On 08 Nov 2018 | Views: 13 | Categories: Tips & Tricks, C#, ASP.NET
0

Like

Built-in events could provide plenty of useful information which can help us to analyze application state if there comes any problem while running in production environment. But there may be the case where you might want to log your own custom event. ...Read more
Posted by: Muhammad Idrees
On 11 Oct 2018 | Views: 29 | Categories: Tips & Tricks, C#, ASP.NET, Microsoft.net
0

Like

ASP.NET Health Monitoring is a useful tool for logging error information that could ease diagnosing problems in a deployed application. Although builtin providers are more than enough to provide a rich information about the state of application. But there could be a chance you need to create custom provider to log additional information or additional storage option. ...Read more
Posted by: Muhammad Idrees
On 04 Oct 2018 | Views: 27 | Categories: Patterns, C#, ASP.NET, Microsoft.net
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: 133 | Categories: XML, Visual Studio, Tips & Tricks, C#
0

Like

Lets say we need to display and save date in yyyy/MM/dd format. Since our server default format is set to dd/MM/yyyy, and we could not change it because some other applications might get affected, so we decided to set the required format at request level in our ASP.Net MVC application. For this we have to set the date format for current culture for each request, i.e. inside Global.asax.cs, in Application_BeginRequest() event. ...Read more
Posted by: Muhammad Idrees
On 25 Feb 2018 | Views: 238 | Categories: Visual Studio, MVC, C#, ASP.NET
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: 260 | 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: 310 | Categories: Visual Studio, Tips & Tricks, C#, Microsoft.net
0

Like

In this post I will explain how to implement localization in Windows Forms Application using ResourceManager class. We will see an example application with Login form, and change the strings/labels with two different locales. ...Read more
Posted by: Muhammad Idrees
On 27 Nov 2017 | Views: 371 | Categories: Win Forms, Visual Studio, C#, Microsoft.net
0

Like

This article will demonstrate the folder structure we need for Angular projects. ...Read more
Posted by: Shivprasad H. Bist
On 03 Nov 2017 | Views: 331 | Categories: C#
0

Like

Posted by: Shivprasad H. Bist
On 27 Oct 2017 | Views: 275 | Categories: C#
Page 1 of 25
Other lins

.Net Techies
Other lins