I have a textbox which is present inside a gridview.The text box should take only date in mm\dd\yyyy format as its input.Can I do this without using any validation controls???

Recommended Answers

All 4 Replies

Use CompareValidator validation control. (set the value for properties - Operator=DataTypeCheck and Type=DateTime)

In controlToValidate property of CompareValidator,am unable to access the textbox which is present inside a gridview.I want the compareValidator to be placed outside the gridview.Can u pls help me out in this?

Thanks a lot!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.