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, 06 Jul 2012
Updated On : 24 Jun 2014

When we want to deploy our web application to live/local server, then we have two options for making built – Release mode and Debug mode. Both the modes have own importance and characteristics. The details about Release mode and Debug mode are as:

 

 

Posted By : Shailendra Chauhan, 04 Jul 2012
Updated On : 25 Jul 2013

We can validate email address at client side and server side. To validate email address on client side, we can use java script with regular expression. Java script can check the regular expression pattern for valid email address. We have different regular expression patterns for validating email address.

 

 

Posted By : Shailendra Chauhan, 20 Jun 2012
Updated On : 22 Feb 2013

In .net 3.5 some new generic delegates -Func<T>, Action<T> and Predicate<T> were introduced. Using generic delegates, it is possible to concise delegate type means you don’t have to define the delegate statement. These delegates are the Func<T>, Action<T> and Predicate<T> delegates and defined in the System namespace.

 

 

Posted By : Shailendra Chauhan, 20 Jun 2012
Updated On : 19 Jul 2013

Delegate is a reference type that holds the reference of a class method. Any method which has the same signature as delegate can be assigned to delegate. Delegate is like function pointer in C++. There are three aspects to a delegate: Declaration, Instantiation and Invocation.

 

 

Posted By : Shailendra Chauhan, 19 Jun 2012
Updated On : 28 May 2014

An extension method is a static method of a static class that can be invoked using the instance method syntax. Extension methods are used to add new behaviors to an existing type without altering. In extension method "this" keyword is used with the first parameter and the type of the first parameter will be the type that is extended by extension method.

 

 

Posted By : Shailendra Chauhan, 19 Jun 2012
Updated On : 14 Jul 2012

Sometimes we need to add scroll bar to a div or span whenever text in the div or span get overflow. scroll bar is supported in all browsers like IE 5+, FF 3.5+, and Safari, Opera etc. To show scroll bar, we need to specify overflow property of css to "visible" or "auto".

 

 

Posted By : Shailendra Chauhan, 23 May 2012
Updated On : 14 Jul 2012

Sometimes we need to wrap a long text and url forcefully. Without word wrap our design layout become awkward. So to do proper alignment of text, we need to wrap text. We can force a long or continuous text to wrap in a new line by defining css word-wrap property to break-word. Word-wrap is supported in all browsers like IE 5+, FF 3.5+, and Safari, Opera etc.

 

 

Posted By : Shailendra Chauhan, 18 Jun 2012
Updated On : 16 Jul 2014

The concept of lamda expression was introduced in C# 3.0. Basically, Lamda expression is a more concise syntax of anonymous method. It is just a new way to write anonymous methods. At compile time all the lamda expressions are converted into anonymous methods according to lamda expression conversion rules.

 

 

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

The concept of anonymous method was introduced in C# 2.0. An anonymous method is inline unnamed method in the code. It is created using the delegate keyword and doesn’t required name and return type. Hence we can say, an anonymous method has only body without name, optional parameters and return type.

 

 

Posted By : Shailendra Chauhan, 17 Jun 2012
Updated On : 17 Jun 2012

Object oriented and Object based programming languages have some different features and behaviour. In this article, I am going to expose the main difference between these two programming languages.

 

 

Posted By : Shailendra Chauhan, 17 Jun 2012
Updated On : 17 Jun 2012

In programming langauages we have two concepts functions and methods. functions are defined in structural language and methods are defined in object oriented langauge. The difference between both is given below :

 

 

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

In Asp.net, sometimes we need to validate a TextBox and its input by more than one validator controls. Suppose you Want to validate a TextBox that must contain a valid Email address then we required two validator controls - Required Field and Regular Expression as shown below:

 

 

Posted By : Shailendra Chauhan, 06 Apr 2012
Updated On : 20 May 2014

var data type was introduced in C# 3.0. var is used to declare implicitly typed local variable means it tells the compiler to figure out the type of the variable at compilation time. A var variable must be initialized at the time of declaration.

 

 

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

In Asp.net, sometimes we need to validate ListBox and DropDown List using Required field validator. It is tricky and avoids the use of JavaScript function to validate ListBox and DropDown List. Here I am sharing the code.

 

 

Posted By : Shailendra Chauhan, 16 Jun 2012
Updated On : 30 Jun 2016

In LINQ to query data from collections, we use IEnumerable and IList for data manipulation.IEnumerable is inherited by IList, hence it has all the features of it and except this, it has its own features. IList has below advantage over IEnumerable.

 

 

 
 
10 SEP
ASP.NET MVC with AngularJS Development (offline)

Sat, Sun (11:30 AM-12:30 PM

More Details
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
10 AUG
ASP.NET MVC with AngularJS Development (online)

Mon-Fri     09:30 PM-11:00 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
 
+