Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic calling of code when SelectedIndexChanged

Status
Not open for further replies.

gregburningham

Programmer
Jul 12, 2000
40
0
0
GB
Hi all

Is it possible to conditionally enable a textbox depending on the value held in a drop-down list? Ideally I want the event to fire (dynamically) as the value in the drop-down list changes (not after submission to the server)


Please can anyone advise me .... ?

Thanks
Greg B


 
If you double click the Drop down list, it should bring you to the default subroutine handler for it called SelectedIndexChanged. In here place your code to check the Index number and if the index number you want is selected enable or disable your textbox.
 
Thanks Borvik -

Just did that .....


In fact I think I've just sussed it !

You have to set AutoPostback = True

Thanks again,

Greg B





 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top