Question

Asked on 2011-05-09 at 14:11:34ID: 27360744

Enabling and Disabling textboxes based on items selected from a drop down list

by: sarah_siu500

Rating8.6Very Good

I am using visual web developer 2005 to build a web form to capture data.  The data is sent to an MS sql database in the back end.  

I want to enable and disable textboxes based on items selected from a drop down list.  Can someone please help me with this?  

i.e. the webform contains a drop down list which contains values A,B,C,D,E.  It also contains 2 textboxes; textbox 1 & text box 2.

When A,B,C is selected I would like to enable textbox1 and disable textbox 2
When D,E is selected, I would like to enable textbox 2 and disable textbox 1

Also, i'm a very new at this so if you can explain it to me in layman's terms, that would be great.

thank you in advance for your help!

Related Solutions

Solution

Sign up now to view this solution! It's quick, easy, and secure to subscribe. We will return you to this solution, unlocked, when you’re done.

About this Solution

View This Solution - Start Your 30 Day Free Trial
Zone
general
Tags
asp.net javascript vb.net
Participating Experts
3
Solution Grade
A

Replies

 by: radcaesar

Posted on 2011-05-09 at 14:19:52ID: 36812517

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: professionalcomputersolutions

Posted on 2011-05-09 at 14:20:03ID: 36812518

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: professionalcomputersolutions

Posted on 2011-05-09 at 14:21:50ID: 36812519

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Nash2334

Posted on 2011-05-09 at 14:25:01ID: 36812520

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sarah_siu

Posted on 2011-05-09 at 14:36:24ID: 36812521

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sarah_siu

Posted on 2011-05-10 at 06:31:55ID: 36812522

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Nash2334

Posted on 2011-05-10 at 07:52:40ID: 36812523

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sarah_siu

Posted on 2011-05-10 at 08:35:48ID: 36812524

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Nash2334

Posted on 2011-05-10 at 09:03:19ID: 36812525

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sarah_siu

Posted on 2011-05-10 at 10:36:50ID: 36812526

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Nash2334

Posted on 2011-05-10 at 11:08:40ID: 36812527

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sarah_siu

Posted on 2011-05-10 at 11:11:30ID: 36812528

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: Nash2334

Posted on 2011-05-10 at 11:24:56ID: 36812529

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

 by: sarah_siu

Posted on 2011-05-10 at 12:46:58ID: 36812530

All comments and solutions are available to Premium Service Members only. Sign up to view the solution to this question. Already a member? Log in to view this solution.

Log In

Forgot your password?Sign up

Top Experts

  1. mplungjan

    1,840

    0 points yesterday

    Profile

BrowseAre you an Expert?