1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Use one Designed userControl in aspx page

Use one Designed userControl in aspx page

2 posts, 0 answered
  1. Pierre
    Pierre avatar
    433 posts
    Registered:
    16 Feb 2006
    09 Jul 2009
    Link to this post
    hi,

    I have created one designer for one Usercontrol using template and myControlBase and myControlDesigner. All works as expected in Editor mode. Now I need use not only in sf editor but in one normal aspx page to configure from client side my control. I have tried to register in one normal UserControl extending this Usercontrol codebehind with the myControlBase and after added to my page but is not rended. Could you help us to add in one aspx page one UserControl designed with myControlBase/myControldesigner.
    Thanks Romi.

    Page with UserControl that inherit from myControlBase
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="ConfiguratorUpDown.aspx.cs" Inherits="Empresas_configurator_Configurator" %> 
    <%@ Register Src="UseDesigner.ascx" TagName="UseDesigner" TagPrefix="uc1" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server"
        <title>Configurator VistaInmo</title> 
    </head> 
    <body> 
        <form id="form1" runat="server"
        <div id="designerhere"
            <uc1:usedesigner id="UseDesigner1" runat="server"></uc1:usedesigner> 
        </div> 
        </form> 
    </body> 
    </html> 

    UC codebehind (UseDesigner.ascx)
    public partial class UseControl : myControlBase 
        protected void Page_Load(object sender, EventArgs e) 
        { 
     
        } 
    The Page rended are nothing. The template herited from myControlBase is not here.
     
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    14 Jul 2009
    Link to this post
    Hi Pierre,

    If you want the designer in a regular Aspx page, where and how will you persist the properties?

    Sincerely yours,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered