RadWindow open page with custom controls (ascx) issue

1 posts, 0 answers
  1. Jakub Gutkowski
    Jakub  Gutkowski  avatar
    5 posts
    Member since:
    Nov 2008

    Posted 13 Dec 2011 Link to this post

    NEVER-MIND, it worked, my fault
    //
    Hi,

    Here is my scenario:
    1. I've created two custom controls (ascx)
    2. I've created custom aspx page to host my two custom controls
    3. On main page, I've created RadWindow that is pointing to page created in step 2 and I've bind event to open a window

    Result:
    RadWindow does not shows my two custom controls.

    Example code for custom control:

    <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DemoDummyControl.ascx.cs" Inherits="X.DemoDummyControl" %>
     
    <p>
    Dummy Control
    </p>
     
    <p>
    To test RadWindow
    </p>
     
    <p>
        <asp:Button runat="server" ID="test" OnClick="Click" />
    </p>

    page to show control:

    <%@ Page Title="" Language="C#" MasterPageFile="~/Popup.Master" AutoEventWireup="true" CodeBehind="demo.aspx.cs" Inherits="X.demo" %>
    <%@ Register Src="~/DemoDummyControl.ascx" TagName="Dummy" TagPrefix="uc" %>
     
    <asp:Content ID="Content1" ContentPlaceHolderID="Scripts" runat="server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     
    <p>
     
    <uc:DemoDummyControl runat="server" />
     
    </p>
     
    </asp:Content>

    Question:

    Is there a way to display ascx controls on page that will be showed in radWindow? And is there a way to do it globally without truly thinking about, as I need to host more then 10 custom controls on that page and doing that manually is just a waste of time.

    Cheers,
       Jakub G

    thanks

Back to Top