how to access control within templatefield in detailsview

Joined
Mar 4, 2008
Messages
1
Reaction score
0
The following code works when I use it to access controls in a form. I'm trying to access controls within templatefield in detailsview to accomplish the same function. Please help. Thanks.

If NationalOrLocal.SelectedValue = "National"Then

RequiredFieldValidatorCorpCity.Enabled = True

RequiredFieldValidatorCorpState.Enabled = True

Else

RequiredFieldValidatorCorpCity.Enabled = False

RequiredFieldValidatorCorpState.Enabled = False

EndIf

 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top