suppose we using gridview contrl,with sqldatasource.in that
for birth date how can we take validation contrl for
dd/mm/yy formator how we assign regular expression for same
Answers were Sorted based on User's Feedback
Answer / prashant kamble
first way , we are go in gridview property in that edit
column in that select that field name and make it item
template. after that right click gridview in that edit item
templated and select that field and then drag regular
expression validator in that column and give regular
expression .
| Is This Answer Correct ? | 17 Yes | 1 No |
Answer / arunananth
SELECT CONVERT(VARCHAR(8), GETDATE(), 1) AS [MM/DD/YY]
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / raja
Regular expression will be
^(0[1-9]|[12][0-9]|3[01])[-/.](0[1-9]|1[012])[-/.](19|20)\d\d$
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / gt
its is very simple just u go to the sql database,change the
related database table like
SELECT col1,col2 Format(Now(),dd/mm/yy) as PerDate
FROM Table
and provide the parameters
(Asper my knowledge(iam not sure))
| Is This Answer Correct ? | 6 Yes | 6 No |
Answer / himanshu
select col1,col2,TO_CHAR(DateTime.Now(),"dd/mm/yy") as date1
from table1
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ravi
just try to this.This is working good
SELECT convert(nvarchar,colname,110)as PrDate from Table
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / kishore
its is very simple just u go to the sql database,change the
related database table like
SELECT col1,col2 Format(Now(),dd/mm/yy) as PerDate
FROM Table
and provide the parameters
(Asper my knowledge(iam not sure))
Is This Answer Correct ? 2 Yes 2 No
0
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / shivani
SELECT col1,col2 Convert(Varchar(20),Now(),3) as PerDate
FROM Table
| Is This Answer Correct ? | 1 Yes | 3 No |
Answer / kishore
related database table like
SELECT col1,col2 Format(Now(),dd/mm/yy) as PerDate
FROM Table
and provide the parameters
(Asper my knowledge(iam not sure))
Is This Answer Correct ? 2 Yes 2 No
0
Gt
| Is This Answer Correct ? | 0 Yes | 3 No |
What is a control toolbox?
IF we have lot of records in Database. How we can handle them?
What are the parameters that control most of connection pooling behaviours?
What is the difference between sqldatareader and sqldataadapter?
What is the difference between typed and untyped dataset?
What is linq and entity framework?
What is ado.net objects?
What are the steps you will take to improve performance? Will you use dataset or datareader?
What is ado object model?
Explain the namespaces in which .net has the data functionality class.
What is ado full form?
What are dcl commands?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)