ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  VB.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
How do you validate Date by using which validation Control?
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How do you validate Date by using which validation Control?
Answer
# 1
<asp:regularexpressionvalidator id="regExpDate" 
runat="server" 

ValidationExpression="^\d{2}[\/-]\d{2}[\/-]\d{2,4}$"

ErrorMessage="It is not a valid date" 
ControlToValidate="txtpatientvisitdate" 
EnableClientScript="False" 
Display="Dynamic"></asp:regularexpressionvalidator>

Kamal..
 
Is This Answer Correct ?    3 Yes 1 No
Kamalakannan.a
 
  Re: How do you validate Date by using which validation Control?
Answer
# 2
<asp:RegularExpressionValidator ID="revEndDate" 
ControlToValidate="txtEndDate" ValidationExpression="((^
(10|12|0?[13578])([/])(3[01]|[12][0-9]|0?[1-9])([/])((1[8-9]
\d{2})|([2-9]\d{3}))$)|(^(11|0?[469])([/])(30|[12][0-9]|0?
[1-9])([/])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(0?2)([/])(2[0-
8]|1[0-9]|0?[1-9])([/])((1[8-9]\d{2})|([2-9]\d{3}))$)|(^(0?
2)([/])(29)([/])([2468][048]00)$)|(^(0?2)([/])(29)([/])
([3579][26]00)$)|(^(0?2)([/])(29)([/])([1][89][0][48])$)|(^
(0?2)([/])(29)([/])([2-9][0-9][0][48])$)|(^(0?2)([/])(29)
([/])([1][89][2468][048])$)|(^(0?2)([/])(29)([/])([2-9][0-9]
[2468][048])$)|(^(0?2)([/])(29)([/])([1][89][13579][26])$)|
(^(0?2)([/])(29)([/])([2-9][0-9][13579][26])$))" 
SetFocusOnError="True" Display="Dynamic" 
runat="server">*</asp:RegularExpressionValidator>
 
Is This Answer Correct ?    1 Yes 0 No
Arunajyothi.m
 
 
 
  Re: How do you validate Date by using which validation Control?
Answer
# 3
Whereas in ASP.Net we can use RegularExpression Validator to
validate the date value.  But in VB.NET we have to use Class
RegEx.  

If Regex.IsMatch(txtDate,
"(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[012])-((19|20)\d\d)") Then
 
Is This Answer Correct ?    2 Yes 0 No
Cherran
 

 
 
 
Other VB.NET Interview Questions
 
  Question Asked @ Answers
 
Disadvantages of vb ? Digital-GlobalSoft4
I want to sample Hotel management project in vb.net because still now i am doing that project for small hotel....so please send me my email id is jmuthu_pearls@yahoo.com...  2
What is the difference between Dataset and Recordset?  7
What is the Difference between Overriding and overloading?  11
How does you get record no from 5 to 15 from a dataset of 100 records? ABC2
Why Datareader is useful?  5
what are the types of threading models in VB.net ? Satyam1
What is CLR?  11
What does VS.NET contains ? Infosys3
What is "Friend" in VB.Net?  2
how to restore database using vb.net? TCS4
Where would you use Abstract class and Interface?  2
what is the dif b/w panel and groupbox. Ksb3
wht is the use of console application?  3
What is the Common Language Runtime? Ksb8
Display a roll having minimum marks in two subjects? Patni1
is it possible to use flexgrid in vb dotnet? Microsoft7
How does you call and execute a SP in .NET?  2
What is MSIL. HDFC3
concept of object oriented programming Patni5
 
For more VB.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com