[英]Dynamically user control inside update panel disappear after click button inside this user control
[英]Prevent width overflow of a user control inside a panel
這就是我的應用程序的樣子,如您所見,我的用戶控件不適合我的面板。 如何使用戶控件適合面板?
<asp:Panel ID="Panel1" runat="server" Width="500px" BorderColor="#000066"
BorderStyle="Solid">
<uc2:OrderDetail ID="uc_OrderDetail" runat="server" />
</asp:Panel>
在樣式中使用“ OverFlow”屬性...希望對您有所幫助...
<asp:Panel ID="Panel1" runat="server" Width="500px" BorderColor="#000066" style="overflow:scroll;" BorderStyle="Solid">
<uc2:OrderDetail ID="uc_OrderDetail" runat="server" style="width:100%"/>
</asp:Panel>
您不能在該表中放入該表,因為表coz表具有許多文本字段,因此需要寬度。 嘗試以百分比形式給出寬度
<asp:Panel ID="Panel1" runat="server" Width="100%" BorderColor="#000066"
BorderStyle="Solid">
<uc2:OrderDetail ID="uc_OrderDetail" runat="server" />
</asp:Panel>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.