开发者

ASP.NET how to create container control which will have exactly two containers?

开发者 https://www.devze.com 2022-12-13 01:43 出处:网络
How to create a web control which will contain exactly two containers in ASP.NET 3.5. Like always exactly two columns (divs). I know default way allows you to have ControlCollection by overriding Crea

How to create a web control which will contain exactly two containers in ASP.NET 3.5. Like always exactly two columns (divs). I know default way allows you to have ControlCollection by overriding CreateControlCollection() method, but whis allows you to have only one container (or variable number of containers). Is there a way to always have exactly two containers in web control?

I want to archive开发者_开发知识库 something like this:

<MyControl> 
<LeftContainer> ... </LeftContainer>
<RightContainer> ... </RightContainer>
</MyControl>


There is no way to do it in ASP.NET 3.5

0

精彩评论

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