Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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 June 26th, 2007, 12:17 PM
Authorized User
 
Join Date: Jun 2007
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
Default please help me in validation urgent

i have 2 textboxes
i don't want the focus to be entered in the second textbox unless and otherwise the first textbox is filled (or is not empty)

i would like to know how to set the focus in the first textbox itself if it is empty

and i have a button which will be enabled only if valid entries are made.

would be kind if any one could help me out in this.

 
Old July 9th, 2007, 05:49 AM
Authorized User
 
Join Date: Dec 2004
Posts: 68
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to DZukiewicz
Default

You can add an error provider to the first textbox, so that the focus doesn't work, on the OnValidating() event.

You can then enable the button of the OnValidating() of the second text box.

Regards,

Dominic





Similar Threads
Thread Thread Starter Forum Replies Last Post
Standalone validation + web form validation morbo Struts 0 August 19th, 2008 04:02 AM
Urgent Validation!! mike_remember ASP.NET 1.0 and 1.1 Professional 5 September 7th, 2007 10:25 AM
validation help urgent please akssmv C# 2005 1 June 24th, 2007 01:44 PM
textbox validation please help urgent akssmv C# 2005 5 June 11th, 2007 11:19 AM
URGENT-->Problem in validation aekta ASP.NET 2.0 Professional 3 March 9th, 2007 07:29 AM





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