Your browser does not support JavaScript! Please enable script of your browser.
D
O
tNet-Tricks
Handy Dot Net Tricks Implementation !!
" Coding , A Rhythmic Literary Job "
Asp.Net - Tutorial, Article, Archive, Pdf, Handy Tricks, Training, Code Snippets, Reference Manual, Server Controls, Directives, Event Handling, Database Access, Security, Debugging, Error Handling, Configuration and Deployment
Asp.Net Tutorial - Getting Started with Asp.Net
Turn off Asp.net Custom Errors in Web.config
Posted By : Shailendra Chauhan, 01 Oct 2012
Updated On : 01 Oct 2012
Version Support : Asp.Net 2.0,3.5,4.0,4.5

Some times after hosting web application on the server, we get unexpected error as shown in the below fig. But we did get the detailed message for the unexpected errror. In this article, I would like to share how can we get detailed message for the unexpected error.

 

Disable right click on web page and images
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.

 

Stop auto-fill in browsers for textbox
Posted By : Shailendra Chauhan, 26 Aug 2012

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.

 

Difference between disabled and read only attributes
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.

 

Validate ListBox and DropDown List using Required Field Validator
Posted By : Shailendra Chauhan, 17 Jun 2012
Updated On : 17 Jun 2012

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.

 

Do proper alignment of validator control's error messages using Display property
Posted By : Shailendra Chauhan, 17 Jun 2012
Updated On : 17 Jun 2012

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:

 

Difference between document.ready and window.onload or pageLoad
Posted By : Shailendra Chauhan, 12 Jun 2012
Updated On : 14 Jul 2012

We think pageLoad() and jQuery’s $(document).ready() events do the same. Both methods seem too similar in simple demo example. But $(document).ready() and pageLoad() methods are very much differ in functioning.In this article, I will explain the major differences between $(document).ready() and pageLoad() methods.

 

Asp.net Enter Key to submit form
Posted By : Shailendra Chauhan, 07 Jun 2012
Updated On : 19 Jul 2012

Suppose, you want to press/click submit button on Enter key press or you are trying to post the form on Enter key press. In asp.net, to achieve this functionality we need to set "Defaultbutton" property either in Form or in panel.

 

Asp.Net asynchronous file upload using jquery
Posted By : Shailendra Chauhan, 29 May 2012
Updated On : 14 Sep 2012

In Asp.net ajax, we have AsyncFileUpload control for uploading files asynchronounsly. If you are using JQuery with in your Asp.net application, then using microsoft ajax AsyncFileUpload control is not a good practice to upload files asynchronounsly. Form Last couples of days I was trying to upload and delete files asynchronounsly using JQuery in Asp.Net and finally I was able to do.

 

Introduction to Asp.net
Posted By : Shailendra Chauhan, 11 May 2010
Updated On : 14 Jul 2012

According to Microsoft, "ASP.NET is a technology for building powerful, dynamic Web applications and is part of the .NET Framework". Infact Asp.Net is a programming framework used to develop web applications and web services. Basically it is next version of asp. It provides the easy way to build, deploy & run web application on any browser.

 

Tips & Tricks Subscription :