Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



suppose we using gridview contrl,with sqldatasource.in that for birth date how can we take validat..

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

suppose we using gridview contrl,with sqldatasource.in that for birth date how can we take validat..

Answer / arunananth

SELECT CONVERT(VARCHAR(8), GETDATE(), 1) AS [MM/DD/YY]

Is This Answer Correct ?    2 Yes 0 No

suppose we using gridview contrl,with sqldatasource.in that for birth date how can we take validat..

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

suppose we using gridview contrl,with sqldatasource.in that for birth date how can we take validat..

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

suppose we using gridview contrl,with sqldatasource.in that for birth date how can we take validat..

Answer / himanshu

select col1,col2,TO_CHAR(DateTime.Now(),"dd/mm/yy") as date1
from table1

Is This Answer Correct ?    0 Yes 0 No

suppose we using gridview contrl,with sqldatasource.in that for birth date how can we take validat..

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

suppose we using gridview contrl,with sqldatasource.in that for birth date how can we take validat..

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

suppose we using gridview contrl,with sqldatasource.in that for birth date how can we take validat..

Answer / shivani

SELECT col1,col2 Convert(Varchar(20),Now(),3) as PerDate
FROM Table

Is This Answer Correct ?    1 Yes 3 No

suppose we using gridview contrl,with sqldatasource.in that for birth date how can we take validat..

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

Post New Answer

More ADO.NET Interview Questions

Explain what is datagrid with an example?

0 Answers   C DAC, CDAC,


What does connection string consists of ?

4 Answers   Digital GlobalSoft,


What is the use of command objects?

2 Answers  


What is Data view?

0 Answers  


Which architecture does Datasets follow?

0 Answers  


What are basic methods of dataadapter?

0 Answers  


describe about the ado.net object model

4 Answers   TCS,


What is Dataset Object?

0 Answers  


What is method to get XML and schema from Dataset? getXML() and get Schema ()

0 Answers  


what is clustered index?why is it created?

4 Answers   Microsoft, Wipro,


Differnce between Stored procedure and user defined functions?

17 Answers   Microsoft, Symphony,


what is Execute NOn Query?

29 Answers   Infosys, Protech, Sars Systems, SwanSoft Technologies,


Categories