datagrid validate on update

A

ann

I want to be able to validate my data on update. I added this to my datagrid:
<asp:requiredfieldvalidator id="Requiredfieldvalidator1" Runat="server"
ControlToValidate="txtTransDate" ErrorMessage="* Transaction Date must be in
the form of mm/dd/yy" Display="dynamic">*</asp:requiredfieldvalidator>

I tried adding a valid.summary message box:
<asp:ValidationSummary id="valSummary" runat="server"
headerText="Please correct the following errors"
display="dynamic" showMessageBox="True" />

but the message box never displays, despite the fact that I check for
is.valid in the update command which will return true/false based on whether
or not I have any data in that text box.
I am using asp.net 1.1
Can anyone help me with this? Is there a different way I should be
displaying the summary?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top