Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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
Old November 15th, 2006, 09:51 AM
Authorized User
Points: 493, Level: 7
Points: 493, Level: 7 Points: 493, Level: 7 Points: 493, Level: 7
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2006
Location: gandhinagar, gujarat, India.
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Validation problem

Hi All

I have textboxes which is bounded runtime in datagrid.I add validator at runtime.When I click on save button,validation fired.But when i click on edit button,validation not fired.
I am adding textbox again at runtime when i click on edit button as per my requirement.

I have two columns in grid.

For Each ditem In dg_unit.Items
dim txt as textbox=ctype(ditem.cell(1).control(0),textbox)
it gives an error.Out of specified argument.
I am not getting how exctely it would be happened?
becoz i am adding textbox in cell(1) of grid.
what is excetly problem?if u eill get some idea,pls help me.


Old November 25th, 2006, 01:44 PM
Authorized User
Join Date: Sep 2006
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts

The answer is for save button u have a property cause validation
Set the cause validation property=true
This make the validation not to be fired do same with edit button
is it ok
if u have any more doubts ping me

Similar Threads
Thread Thread Starter Forum Replies Last Post
validation problem Ashleek007 JSP Basics 1 June 18th, 2007 01:16 AM
Interesting validation problem jacob ASP.NET 1.0 and 1.1 Professional 5 February 16th, 2006 07:16 PM
Validation and Insert problem addos Beginning PHP 0 January 17th, 2005 06:50 PM
validation problem Abhinav_jain_mca General .NET 6 August 5th, 2004 02:32 PM

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