TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
scampercat
NA
189
0
custom validator for C# web app
Jun 24 2012 1:34 PM
In a C# 2010 webform application I am working on a couple of custom validators. One of the validators needs to look at a sql server 2008 r2 database to find the lowest and highest value for a create date field.
My question is how to setup a customer error message that can be generated. Basically I would like the error message to say the create date needs to be within a certain date range. I would do not want to say the create date requested values is not contained in the specific table.
Thus can you tell me how to setup a custom error message that the custom validator can use?
Reply
Answers (
2
)
Use of Web.config and Difference between Machine.config and Web.config
data context object in web app 2010