Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

Data validation for detailsview control

I am using a detailsview to insert/edit records and I need to validate
the data to be inserted before insertion. So if a user tries to enter monday 29th
into a date field I can catch it and return an error page detailing date format to be used.

using MS visual studio, asp.net 2
0
deNZity
Asked:
deNZity
  • 2
1 Solution
 
craskinCommented:
i think the boundfields in a detailsview have flags for regex validation built-in, but i'm not sure.
0
 
deNZityAuthor Commented:
Thanks for the reply but I think that applies only to textboxes and the like not data controls

<asp:RegularExpressionValidator id="regex"....
0
 
deNZityAuthor Commented:
Apologies you where partly correct, but for detailsview this has to be done from template.
great tutorial/s here.

http://www.asp.net/learn/dataaccess/tutorial19vb.aspx?tabid=63
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now