Solved

Data validation for detailsview control

Posted on 2006-11-02
3
459 Views
Last Modified: 2008-02-26
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
Comment
Question by:deNZity
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
craskin earned 500 total points
ID: 17861621
i think the boundfields in a detailsview have flags for regex validation built-in, but i'm not sure.
0
 

Author Comment

by:deNZity
ID: 17861911
Thanks for the reply but I think that applies only to textboxes and the like not data controls

<asp:RegularExpressionValidator id="regex"....
0
 

Author Comment

by:deNZity
ID: 17878570
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now