最近在使用一个图片剪切的工具 WebImageMaker.它可以很好的工作在普通页面里面.
它是当它在Master 页面里的时候发现 上传 按钮的事件失效了.
原来是因为它在 CreateChildControls 的时候调用了 ClientID 结果生成的ClientID没有加上容器的部分.回发的时候就没有办法触发事件了.
One Bug On WebImageMaker. When the control be used in master page. it can not work. you must move some code out of CreateChildControls life cycle, put these code to AddAttributesToRender method
Code