Validating in Datagird

Results 1 to 2 of 2

Thread: Validating in Datagird

  1. #1
    Join Date
    Dec 1969

    Default Validating in Datagird

    How can i validate the textbox in datagrid before processing updating to the database?<BR>For example user should input integer in a textbox in datagrid when editing.Then, how can i validate the textbox and pop up a message box if the user input invalid data?I will like to do it in client side can i done it in javascript?10q for ur help.

  2. #2
    Join Date
    Dec 1969

    Default RE: Validating in Datagird

    use an &#060;asp:RequiredFieldValidator&#062; and/or an &#060;asp:RegularExpressionValidator&#062; right inside the datagrid next to the TextBox in question and the .NET Framework will automatically wire it in there

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts