在我的ascx標記,我有下面的代碼,我想移動到後臺代碼:如何以編程方式創建模板佈局部分?
<fs3:LanguageBar CssClass="setIn" ID="languageBar" PostBack="True" runat="server">
<LayoutTemplate>
<fs3:LanguageList ID="languageList" runat="server" CssClass="setIn">
<ItemTemplate>
<asp:HyperLink ID="listItem" CssClass="emptyLang" runat="server" />
</ItemTemplate>
<CurrentItemTemplate>
<asp:Label ID="listItem" CssClass="currentLang" runat="server" />
</CurrentItemTemplate>
<SelectedItemTemplate>
<asp:HyperLink ID="listItem" CssClass="filledLang" runat="server" />
</SelectedItemTemplate>
</fs3:LanguageList>
</LayoutTemplate>
</fs3:LanguageBar>
如何創建這個程序,所以我可以將它添加到頁面?