View Single Post
  #1 (permalink)  
Old February 21st, 2006, 12:27 PM
rit01 rit01 is offline
Friend of Wrox
Join Date: Oct 2005
Location: , , United Kingdom.
Posts: 173
Thanks: 0
Thanked 2 Times in 1 Post
Default Control a text box property from an Event

Hi All

I have a FormView control databound to an SQLDataSource and within the FormView I have several textboxes and a dropdownlist.

What I am trying to acheive is to be able to disable a text box depending on the value of the dropdownlist control. I have created an Formview_databound event but am having problems with

1. finding the value of the dropdownlist withint hat formview and
2. assigning the enabled="false" to my textboxes from within the event.

Basically I haven't a clue how to do this... Can anyone point me in the right direction regarding syntax?


Reply With Quote