Web user control in asp .Net page
i have a dropdown control with Listitems in Web User control. Am using the web user control in an asp .net page. using find control am able to find the control dropdown but could not get the iteml开发者_StackOverflow社区ist. Can any body help me to resolve the issue...?
You should not need to use find control. Expose it as a property of your web user control instead.
If you still want to use FindControl, it is likely you can not find the item list because FindControl does not return a DropdownList. You will need to cast the control returned as a DropDownList
to access its Items
property
精彩评论