0

.Net Framework v4.5 Ext.Net v2.2 UserControlLoader を使用して正常に動作しますが、UserControl にプロパティを渡してレンダリングする必要があります。私のユーザーコントロールマークアップ

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditPost.ascx.cs" Inherits="SepanoCMS.Views.EditPost" %>

<ext:Panel RTL="true" ID="pnlEditPost" ClientIDMode="Static" runat="server" Padding="5" Layout="FormLayout" AutoWidth="true"
AutoHeight="true" AnchorHorizontal="100%" Border="false">
<Items>
    <ext:TextField ID="txtTitle" ClientIDMode="Static" runat="server" AnchorHorizontal="100%" />
    <ext:HtmlEditor ID="HtmlEditor1" ClientIDMode="Static" runat="server" MinHeight="150" MaxHeight="600" AnchorHorizontal="100%" />
</Items>
</ext:Panel>

Page_Load でtxtTitleHtmlEditor1を埋めるための値が必要です

4

1 に答える 1

0

Create two public property using get set method in user control. pass the value in the property in page load of page where u added the control. then assign that value in control inuser control page load.

于 2013-06-26T10:26:09.250 に答える