模仿CS的TabStrip做成的自定义控件: 不能获得View里面的自动添加的控件(内附代码)
1.调用方法:
<cc1:TabularMultiView ID= "TabularMultiView1 " runat= "server ">
<cc1:TabularView ID= "view1 " runat= "Server " Selectable= "true " TabName= "商品版本 ">
<asp:Panel ID= "panel1 " ScrollBars= "Auto " runat= "Server ">
... 里面是自己加的控件
<asp:TextBox ID= "txtMerchId " runat= "server " MaxLength= "30 "> </asp:TextBox>
... 里面是自己加的控件
</asp:Panel>
</cc1:TabularView>
</cc1:TabularView ...>
<asp:Panel...>
</asp:Panel>
</cc1:TabularView>
依此推!
2.问题:但是加载后在服务器端得不到 txtMerchId ;用 txtMerchId.Text都报错!
3.简要源码:
------解决方案--------------------dif