Solved

Data validation for detailsview control

Posted on 2006-11-02
3
467 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Technology Resume 7 68
Returning a value from a class function to a partial view in MVC5 7 46
asp Google Map 2 59
orderby list (from Json) 1 29
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

749 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