Showing posts with label JavaScript. Show all posts
Showing posts with label JavaScript. Show all posts

Wednesday, January 14, 2015

Javascript PAN Number validation in Asp.net Textbox onkeypress event

Introduction

In this post I will explain how to validate PAN number using javascript on Asp.net textbox onkeypress event. My previous post Asp.net server controls validation using Javascript client side.

Explanation

Permanent Account Number is simply called as (PAN) in India who are all paying the TAX using this identification card.PAN is ten digit alphanumeric characters.All characters should be in upper case.The first five characters should be Alphabets and followed by four digit numbers and the last one should be Alphabet.The first character is the type of the PAN and the fifth character is the name of the person.

Tuesday, January 13, 2015

Asp.net server controls validation using Javascript client side

Introduction

In this post I will explain how to validate Asp.net server controls using client side Javascript. My previous post 3-Tier Architecture in ASP.Net C# with step by step example, Email id validation using javascript in Asp.net.

Explanation

Asp.net server controls will bind as a HTML controls in browser. Client ID is the variation between a HTML control and a server control.Here why am specifically telling about Client ID is because HTML control ID will be remain same in all pages but Asp.net controls ID will differ in normal page and a master page. So while using the Javascript we have get the control with Client ID. Here I have given how to validate textbox in javascript onkeypress event,Textbox required field validation in javascript, Drop down list required field javascript validation,Checkbox required field validation in javascript, Option button required field validationin javascript.

Saturday, November 29, 2014

Highlight Asp.net gridview row color on mouseover using javascript and css

Introduction

In this post I will explain how to highlight gridview row color using javascript and CSS. My previous post Email id validation using javascript in Asp.net.Gridview in asp.Net c#.

Explanation

Asp.Net Gridview control is an adjustable and adaptable control which is used to show bulk information on a column and row basis.As we all know Gridview control will rendered as a table. Even though gridview control is having many features but it has missed some client based attractive things like highlighting gridview control row color. But we can achieve highlighting row in gridview using the below given code. Highlighting a Asp.Net gridview control row is more than just to make it looks good. It serves to distinguish and concentrate on a specific row, since the Gridview shows numerous lines of information at once.

Friday, November 21, 2014

Email id validation using javascript in Asp.net

Introduction

In this post I will explain how to do email id validation in Asp.net javascript. My previous post SQL Query to find Nth Highest or Lowest salary of an employee table. How to send email in Asp.net c#

Explanation

Validation is a main purpose of a website for avoiding the invalid user entries. We can validate our controls in client side and server side. client side validation will be very simple and very fast.

Followers