开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜