datagrid validate on update

Discussion in 'ASP .Net Datagrid Control' started by ann, Jun 26, 2006.

  1. ann

    ann Guest

    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?
    ann, Jun 26, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Duppypog

    Validate Data in DataList Update

    Duppypog, Jul 22, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    385
    Duppypog
    Jul 22, 2003
  2. matthew schouppe
    Replies:
    3
    Views:
    2,343
    Scott Allen
    Apr 30, 2004
  3. =?Utf-8?B?TWljaGFlbA==?=

    How to update datagrid after update

    =?Utf-8?B?TWljaGFlbA==?=, Mar 17, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    495
    Alex D.
    Mar 17, 2006
  4. Andreas Klemt
    Replies:
    0
    Views:
    266
    Andreas Klemt
    Oct 8, 2003
  5. Kostia
    Replies:
    1
    Views:
    254
    Scott Mitchell [MVP]
    Feb 26, 2004
Loading...

Share This Page