Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
| Search | Today's Posts | Mark Forums Read
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 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 October 29th, 2007, 04:49 AM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ousys Send a message via Yahoo to ousys
Default Help :asp.net2.0 button onclick event handle

Hi,guys, I am trying to use a button to check whether the register name is already registered or not , without submitting the whole form.

Now I have a problem: I use useSubmitBehavior and postbackUrl, so it firstly validate all other elements in the form , and I use requiredField in all other elements, so it need complete the form firstly , which doesn't meet my requirement , what can I do?
any sample code?

 
Old October 29th, 2007, 07:53 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
Default

You can set a certain button to not perform complete form validation by setting the CausesValidation attribute to false.

-Peter
 
Old November 11th, 2007, 02:57 AM
Registered User
 
Join Date: Apr 2006
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ousys Send a message via Yahoo to ousys
Default

yes, thank you, now I have already solved this problem





Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp DataGrid Button Event jgrant General .NET 0 August 23rd, 2007 08:53 PM
Binding handle in .Net2 umacv General .NET 0 November 18th, 2006 12:51 PM
onclick event for a submit button mehdi62b Javascript 1 April 1st, 2005 12:57 PM
onclick event pigtail Javascript 1 April 11th, 2004 03:10 PM
onClick Event mateenmohd Javascript 4 December 16th, 2003 01:08 AM





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