Archives for 2017 - Page 4
Problem with ASP.NET using MySQL Connecting through ODBC Driver in some Hosting Servers
Recently I hosted one of my application which is using MySQL as backend and I decided to use MySQL .NET connector to access the MySQL server. I hosted one of the…
How to check if an appSettings key exists or not in web.config?
Problem Statement There might be a chance of missing the appSettings Key and it leads to an runtime exception when system doesn't found particular Key. Solution For this we have…
Using Caller Information attributes in C#
Caller Information attributes are newly introduced in Framework There are three attributes which are more helpful in tracing, debugging and diagnosis the application. These attributes will provide some information about…
Issue: The length of the string exceeds the value set on the maxJsonLength property
Problem Statement Many people had faced with their MVC Applications with the following issue. Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the…
Find given number is Palindrome Number or Not ?
What is Palindrome Number? A Palindrome number or numeral palindrome is a number that remains the same when its digits are reversed ( 11,121, 1331,12321). using System; namespace PalindromeNumber {…
Find given number is Prime or Not? Using Recursion & Non Recursion Methods.
What is Prime Number ? A number that is divisible only by itself and 1 ( 2, 3, 5, 7, 11). using System; using ; using ; using ; using…
Naming Conventions in C#.Net
For any developer, Naming Convention is a best practice to work on any development project. Let’s discuss more about Naming convention in this article. Why Naming Conventions? Naming Convention is…
Working with new Value Tuple Data Structure in C# 7.0
Problem Statement: Want to return multiple results from the single method of different types. To achieve this functionality, there are three methodologies until Framework version * and following are those…
Working with Local Functions in C# 7.0
Today we will learn something cool feature called Local Functions in our newly upgraded version of C# , As we already know about Public and Private functions in our C# language.…
Use of AllowAnonymous Attribute in ASP.Net MVC ?
AllowAnonymous Attribute that helps you secure an entire MVC 4 Website or Controller while providing a convenient means of allowing anonymous users access to certain controller action. using ; namespace…