troubleshooting Question

make control visible based off other control value

Avatar of jknj72
jknj72 asked on
ASP.NETVisual Basic.NETJavaScript
7 Comments1 Solution117 ViewsLast Modified:
I have an application and Im trying to accomplish the following.

For arguments sake lets say I have a <asp:button> <asp:dropdownlist> and a <asp:label>
When I click the button I want to check the dropdownlist for selectedvalue > 0 and make the label visible if true

I have save code that runs on the OnClick event of the button already but if the selecteditem.value of a dropdown =0 I want the save code not to run and just show a label that Im using as a fieldvalidator(user must select a drop down item)

I tried to create a function that would with OnClientClick but obviously didnt do it correctly...

Any help would be appreciated!
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros