Please enable Javascript to correctly display the contents on Dot Net Tricks!

Dot Net Tricks Tutorial - For Beginners & Professionals

.net article,c# tutorial,asp.net tutorial,linq tutorial,wcf tutorial,mvc tutorial,entity framework tutorial,sqlserver tutorial,jquery tutorial,visual studio tutorial
 
Posted By : Shailendra Chauhan, 14 Sep 2012
Updated On : 18 Sep 2012

Sometimes it is required to prevent your web page images from being copied by another one. You can secure your images by disabling right click or by disabling image context menu on images only. This is an effective approach to prevent your images from being copied or stolen.

 

 

Posted By : Shailendra Chauhan, 31 Aug 2012
Updated On : 24 Jun 2014

One student of me asked "how can we get nth highest and lowest salary on an employee ?". In this article I am going to expose, how can we achieve this in SQL Server.

 

 

Posted By : Shailendra Chauhan, 31 Aug 2012
Updated On : 24 Jun 2014

One student of me asked "how can we get fields name of a table with theirs type and size ?". In this article I am going to expose, how can we achieve this in SQL Server.

 

 

Posted By : Shailendra Chauhan, 24 Aug 2012
Updated On : 24 Jun 2014

Sometimes we required to remove duplicate records from a table although table has a UniqueID Column with identity. In this article, I would like to share a best way to delete duplicate records from a table in SQL Server.

 

 

Posted By : Shailendra Chauhan, 26 Aug 2012
Updated On : 24 Jun 2014

Today’s browsers like Chrome, Firefox, Internet Explorer and Safari has functionality of auto complete values in TextBoxes. If you have enabled this features in your browser, then each and every time when you start to enter value in TextBox you get a drop down of prefilled values in that TextBox.

 

 

Posted By : Shailendra Chauhan, 27 Aug 2012
Updated On : 28 Mar 2014

Best performance is the main concern to develop a successful application. Like a coin database is the tail side (back-end) of an application. A good database design provides best performance during data manipulation which results into the best performance of an application.

 

 

Posted By : Shailendra Chauhan, 26 Aug 2012
Updated On : 25 Sep 2012

Suppose, you are sending mail to different-different users by using while loop and you forgot to insert while loop update statement. In this case SQL Server will generate thousands or millions of mail against a specific email address with in a min.

 

 

Posted By : Shailendra Chauhan, 23 Aug 2012
Updated On : 24 Jun 2014

Sometimes we required to generate a comma separated list of columns values like a list of EmailIDs to send mail. In SQL Server, we can make a comma separated list by using COALESCE as shown in below.

 

 

Posted By : Shailendra Chauhan, 14 Aug 2012
Updated On : 23 Feb 2014

In C#, Constructors are the special types of methods of a class which get executed when it's object is created. Constructors are responsible for object initialization and memory allocation of its class. There is always at least one constructor in every class. If you don't write a constructor in class, C# compiler will automatically provide one constructor for that class.

 

 

Posted By : Shailendra Chauhan, 27 Jul 2012
Updated On : 31 Jan 2013

Data validation is a key aspect for developing web application. In Asp.net MVC, we can easily apply validation to web application by using Data Annotation attribute classes to model class. Data Annotation attribute classes are present in System.ComponentModel.DataAnnotations namespace and are availlable to Asp.net projects like Asp.net web application & website, Asp.net MVC, Web forms etc.

 

 

Posted By : Shailendra Chauhan, 27 Jul 2012
Updated On : 17 Feb 2014

In ASP.NET MVC, ViewModel is a class that contains the fields which are represented in the strongly-typed view. It is used to pass data from controller to strongly-typed view.

 

 

Posted By : Shailendra Chauhan, 19 Jul 2012
Updated On : 05 Apr 2015

In Asp.net MVC 3 & MVC4, we have three objects - ViewData, ViewBag and TempData to pass data from controller to view and in next request. Now question is that when to use ViewData, VieBag and TempData. All these three objects have its own importance. In this article I am trying to expose the use of these three.

 

 

Posted By : Shailendra Chauhan, 19 Jul 2012
Updated On : 25 Jul 2012

In Asp.net MVC, sometimes we required to post the form on Enter key press. Asp.net MVC has no default button property like Asp.net. However, we can achieve this functionality by using jQuery in MVC.

 

 

Posted By : Shailendra Chauhan, 18 Jul 2012
Updated On : 11 Oct 2012

File uploading functionality is generally used by the developers. Before uploading file on the server, to know the size of file is a good practice. By knowing file size, we can restrict the end user to upload large size files on the server since we have limited space on the server. We should check uploaded file size on server side as well client side.

 

 

Posted By : Shailendra Chauhan, 21 Jul 2012
Updated On : 20 Jul 2012

Sometimes, we required to display form fields in non-editable mode. We can achieve this functionality by setting read-only or disabled attribute to form fields (textbox, label, checkbox, text area). Before using both these attributes, we should understand the key differences between read only and disabled attributes.

 

 

 
 
13 AUG
NodeJS Development (offline)

Sat, Sun 05:00 PM-06:30 PM

More Details
12 AUG
NodeJS Development (online)

Mon-Fri 06:00 AM-7:30 AM IST

More Details
8 AUG
ASP.NET MVC with AngularJS Development (online)

Monday      09:30 PM-11:00 PM IST

5 AUG
AngularJS Development (online)

Mon-Fri     08:00 PM-09:30 PM IST

1 AUG
ASP.NET MVC with AngularJS Development (online)

Mon-Fri     (07:30 AM-09:00 AM IST)

24 JUL
AngularJS Development (offline)

Sat,Sun     (08:00 AM-09:30 AM)

24 JUL
ASP.NET MVC with AngularJS Development (offline)

Sat, Sun     (09:30 AM-11:00 AM)

BROWSE BY CATEGORY
 
SUBSCRIBE TO LATEST NEWS
 
LIKE US ON FACEBOOK
 
+