.net - Why am I getting error 'not declared'? -
i'm trying show dropdownlist (cbb_conj_habitacional) if selected value of dropdownlist (cbb_area_verde) equals 7... but, when try code, following error:
name 'cbb_area_verde' not declared , goes cbb_conj_habitacional.
protected sub cbb_area_verde_selectedindexchanged(byval sender object, byval e system.eventargs) dim selecionado integer selecionado = cbb_area_verde.selecteditem.value if (selecionado = 7) cbb_conj_habitacional.visible = true end if end sub and yes, i'm in partial class.
i know did wrong... "cbb_conj_habitacional" inside of formview, declared findcontrol.
dim cbb_conj_habitacional dropdownlist = formview.findcontrol("cbb_conj_habitacional") i hope can someone.
Comments
Post a Comment