473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Using a customvalidator in a Gridview

I have a gridview where I am trying to validate two concatenated
fields with two other concatenated fields. The fields I concatenate
build a date/time string. Each set of fields has a dropdown, with a
date, in mm/dd/yyyy format, and a textbox, which uses a
RegularExpressionValidator to ensure the time is entered in 12-hour
time, in the HH:MM am/pm format. The fieldnames I use are DDLDateIn
and txtTimeIn, and DDLDateOut and txtTimeOut. If anyone has any
suggestions on how to use a custom validator control inside of the
GridView, I'd love to hear them. Thanks.

Apr 4 '07 #1
0 1264

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: jcpmeticulus | last post by:
Hi I've spent the last day or so debugging a problem with a CustomValidator and am now totally stumped! Basically I use a number of CustomValidator's on my page, but have cut this down now to...
2
by: Stephen Miller | last post by:
Can the CustomValidator be used to simply report unexpected errors, without requiring Client/Server validation? To explain, say you had a simple text box and button that did a Full-text Search of a...
1
by: SMG | last post by:
Hi All. My forms has two textboxes, 1 username, 2 password. Both has requiredfield validator it works fine when there is no input in these textboxes. And the errorMsg is shown in...
0
by: ghafranabbas | last post by:
This is how you use the customvalidator control in any INamingContainer interface control (Datagrid, DataList, DataRepeater, etc). 1. In the ItemTemplate, place your customvalidator 2. Set the...
1
by: ken | last post by:
I added a CustomValidator in Gridview edit mode, how to set the cusomvalidator to invalid or valid when check the update
2
by: lorenzon | last post by:
I have a relatively simple case where I have a form with two fields (call them A and B) which need to be enabled mutually exclusively depending on the state of a drop down. So if drop down is "A"...
0
by: pompeymike | last post by:
Hi, I have a form with panels, within which is a Formview. In the InsertItemTemplate for the FormView I have validation using RequireFieldValidators. These all work correctly, but if I use a...
1
by: Aamir Ghanchi | last post by:
Like thr subject line says. I get no intellisense in VS 2005 as well as get the compilation message "The name 'ddlCourse1' does not exist in the current context". Is there a way to have access to...
0
by: Don | last post by:
I have a page with a GridView that uses an ObjectDataSource. The user can change some parameters on the page and refresh the GridView with a button click. One of the parameters has a...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.