Pages

Subscribe:

Ads 468x60px

Friday, March 16, 2012

how to use ASP.Net CompareValidator to compare dates in dd/mm/yyyy format

in this web programming tutorial we will learn that how to use ASP.Net CompareValidator to compare dates in dd/mm/yyyy format.

By default the ASP.Net CompareValidator does not work for dd/mm/yyyy format hence we will need to change the Culture property of the page to en-GB in the @Pagedirective of the ASP.Net Web Page as show below

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" Culture = "en-GB" %>
 

 


    


    
Start Date:   End Date:

No comments:

Post a Comment