Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .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
 
Old September 13th, 2004, 08:21 PM
Authorized User
 
Join Date: Aug 2004
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to check data entered 3 textboxs


Hello everybody,

I have 3 textboxs (asp.net control) in my aspx page.

I want to check data enter these 3 textbox, but only compel enter 1 of 3 textboxs. i.e when second textbox entered data then first and third textbox can entered or do not entered.

How do I do that?

Thank so much,

Best regard.

Minh Phan

 
Old September 13th, 2004, 11:46 PM
Authorized User
 
Join Date: Feb 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mahulda
Default


Put the textcanged eventhandler as the same for all the three textboxes.
Then in that put in the following code :

if not textbox1.text is nothing then
        textbox2.text = ""
        textbox2.enabled = false
        textbox3.text = ""
        textbox3.enabled = false
end if

Similarly for textboxes 2 and 3

-.. -..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Show fields depending on data entered in previous Vaz ASP.NET 2.0 Basics 0 June 27th, 2006 09:16 AM
Re: need to convert data entered to all caps flyfish Access 5 March 18th, 2005 12:35 PM
retaining the last data that was entered Calibus Classic ASP Databases 4 October 14th, 2004 03:31 PM
How to check entered data with Validator Control minhpx General .NET 2 September 15th, 2004 04:01 AM
Maintain entered data sporkman43 Classic ASP Basics 2 October 14th, 2003 02:11 AM





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