tow years ago I face the situation where a hacker uploaded the malicious asp script to our web server by changing its extension to .jpg and our team had put validation on file extension, but unfortunately, the file extension was .jpg (allowed extension), so the hacker uploaded that file . after this situation, we… Continue reading validate Image content before upload in #asp.net using c#
I will introduce some concepts very briefly before discussing on Common Table Expressions and why we need to use, and that because I assume that you have a good understanding of SQL already. When we look at a basic SQL statement; the general structure it will look like: SELECT FROM WHERE GROUP BY by <… Continue reading whey we need to use Common Table Expressions ( CTE )?
Essentially, a singleton is a class which only allows a single instance of itself to be created and usually gives simple access to that instance. Most commonly, singletons don’t allow any parameters to be specified when creating the instance, for that This article deals only with the situation where no parameters are required. There are… Continue reading Implementing the Singleton Pattern in C#
it is mandatory to know about the performance of it. These are right up to a certain point as LINQ comes with its own penalties. There are some tips and tricks that we should keep in mind while designing and query database using entity framework Here is a list of some tips you would like… Continue reading How To improve Entity Framework Performance
In SQL Server functions and stored procedure are two different types of entities and every one have its own features and limitation , for that if we now what are the major differences between them we can write query on efficient way I believe that they are both different things they cannot be compared. I… Continue reading Stored procedure vs Sql function
when do we use a struct versus a class? So in C#, as well as some other object-oriented programming languages, we have the ability to create a structure in the code or we have the ability to create a class in the code. And some folks who are new to dealing with object-oriented programing, or… Continue reading When do you use structs vs classes?
You may find this tip very handy and useful in case you are dealing with a large solution with several projects in Visual studio. We don’t work across the solution / all projects together. and you need to keep focus to one project in this solution all what you need to do is : … Continue reading Scoping your Solution Explorer in Visual Studio