Last post Nov 24, 2009 09:54 PM by Qin Dian Tang - MSFT
Nov 19, 2009 02:04 PM|kevcpu_1|LINK
Lets say I wanted to create my own custom validation system. Is there a way to pull the values from controls without testing whether the control is TextBox or DropDownList, further up the inheritance chain? It seems there are certain things groups of controls
have in common like ".Text" property for text-based controls and ".SelectedValue" for multi-select controls. Are there any other commonalities like this and how would I go about manipulating them?
Nov 24, 2009 09:54 PM|Qin Dian Tang - MSFT|LINK
Based on my knowledge it cannot be done. The property for Text or SelectedValue is from the validated controls, so you don't know whether it is. You have to check the control type and get from its own property.