Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Data validation for detailsview control

Posted on 2006-11-02
3
Medium Priority
?
475 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 1500 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

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…
Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

618 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