开发者

image embedded in a Custom Server Control

开发者 https://www.devze.com 2023-01-11 12:49 出处:网络
How to use image in Custom Server Control开发者_运维百科 ?Create an instance of the System.Web.UI.WebControls.Image class in your server control and expose whatever properties of it you need through y

How to use image in Custom Server Control开发者_运维百科 ?


Create an instance of the System.Web.UI.WebControls.Image class in your server control and expose whatever properties of it you need through your control, then when you do your rendering, call the Image's rendering. That should let you compose a control using that class without too much extra effort.

0

精彩评论

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