Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 6th, 2004, 01:35 AM
Authorized User
Join Date: Nov 2003
Location: hyderabad, AndhraPradesh, India.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to koneruvijay
Default Validation

Hello Folks,

         I am having a texbox,SubmitButton and a datagrid in which i am editing updating and deleting the items in datagrid.But while updating an item in datagrid if i press update button of datagrid the textbox is getting validated and unable to continue.This problem is in asp.net

Can anyone tell me the solution for this.....

I want the textbox to get validated only when i press submit button but not in datagrids update button.
Awaiting for your earliest reply

  #2 (permalink)  
Old January 6th, 2004, 09:22 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

Unfortunately, this is the way validation works. Are you doing this validation on the server or client (or both)? If you are doing the validation on the server side you can very easily disable the validator that you don't want to use. So in your update command handler for the datagrid, you could disable the textbox validator outside the grid. However, if you are doing this on the client, it will be much more difficult.

Work smarter, not harder.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Standalone validation + web form validation morbo Struts 0 August 19th, 2008 04:02 AM
Validation using Validation Framework kalyangvd Struts 1 January 2nd, 2008 06:53 AM
validation mikedeepak ASP.NET 2.0 Basics 0 May 28th, 2007 03:20 AM
Validation g_vamsi_krish ASP.NET 1.0 and 1.1 Professional 2 January 11th, 2006 06:46 AM
Validation koneruvijay VS.NET 2002/2003 2 January 20th, 2004 08:00 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.